A method, system and electronic device for risk assessment of a tobacco retailer

By combining parallel computing rule models and machine learning models with multi-source data to conduct risk assessments of tobacco retailers, the problems of insufficient identification capabilities and false positives and false negatives in existing technologies have been solved, achieving higher assessment accuracy.

CN123159909APending Publication Date: 2026-11-24HUANGSHI OF HUBEI TOBACCO CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611387730.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-08
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing tobacco retailer risk assessment models have limitations in terms of insufficient identification capabilities and false or missed reporting, making it difficult to meet complex regulatory requirements.

Method used

The system employs a rule-based model engine and a machine learning model engine for parallel computation, combines multi-source data for risk assessment, and generates a comprehensive risk index through weighted summation and dynamic threshold correction, resulting in a visual report.

Benefits of technology

It improved risk identification capabilities, reduced false alarms and false negatives, and improved the accuracy of assessment results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159909A_ABST
    Figure CN123159909A_ABST
Patent Text Reader

Abstract

This invention provides a risk assessment method, system, and electronic device for tobacco retailers. The method includes: acquiring and preprocessing multi-source data from tobacco retailers; inputting the preprocessed multi-source data into a rule model engine and a machine learning model engine for parallel computation to obtain a basic risk score and a predicted probability of violation for the tobacco retailer; performing a weighted summation of the basic risk score and the probability of violation to obtain a preliminary comprehensive risk index; if the predicted probability of violation is greater than a first preset risk threshold, amplifying and correcting the weights of the risk indicators corresponding to the predicted probability of violation in the rule model engine, and recalculating the weighted summation result to obtain a final comprehensive risk index; mapping the final comprehensive risk index to a risk level and generating a visual report containing risk causal analysis. This invention improves risk identification capabilities while reducing error propagation during the assessment process, thereby enhancing the accuracy of risk assessment results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of tobacco retail management, and more specifically to a risk assessment method, system, and electronic device for tobacco retailers. Background Technology

[0002] In the process of digital transformation of tobacco monopoly market supervision, building a scientific and efficient risk assessment model is key to achieving precise supervision. The forms of violations by tobacco retailers are complex and diverse, including both explicit violations with clear criteria for judgment and highly concealed risks that can only be discovered through massive data correlation. Currently, risk assessment of tobacco retailers mainly employs rule-based assessment methods built on the experience of business experts and data-driven assessment methods using machine learning algorithms. Both techniques have limitations in practical application and are insufficient to meet increasingly complex regulatory needs.

[0003] Traditional rule-based models rely entirely on expert experience to manually set rules and weights. When the actual risk distribution changes or new violation patterns emerge, the rules are difficult to update and adjust in a timely manner, leading to a gradual decline in assessment accuracy over time. Furthermore, single-rule models can only make judgments based on pre-defined explicit logic and cannot autonomously discover highly concealed and logically complex violation patterns from the data, exhibiting a significant deficiency in their ability to identify new types of illegal and irregular behaviors. In contrast, machine learning-based prediction models are highly dependent on the quality and quantity of training data. With insufficient sample size or low-quality labels, the prediction results are unstable, and when business rules are adjusted or anomalies occur that deviate from historical data distributions, the model is prone to false positives or false negatives.

[0004] Therefore, in the context of risk assessment for tobacco retailers, how to improve the risk identification capability of the model while reducing the error transmission during the assessment process is a technical problem that urgently needs to be solved. Summary of the Invention

[0005] In view of this, it is necessary to provide a risk assessment method, system and electronic device for tobacco retailers to solve the technical problems of insufficient risk identification capability of existing risk assessment models and the susceptibility of false alarms or omissions in the assessment process.

[0006] To address the aforementioned technical problems, in a first aspect, the present invention provides a risk assessment method for tobacco retailers, comprising: Acquire and preprocess multi-source data of tobacco retailers, including basic characteristic data of retailers, monopoly case data, marketing order data, and logistics trajectory data; The preprocessed multi-source data are input into the rule model engine and the machine learning model engine for parallel computation. The rule model engine calculates the basic risk score of tobacco retailers based on the preset risk indicators and the corresponding weights of each risk indicator. The machine learning model engine calculates the predicted probability of violations of tobacco retailers. The basic risk score and the predicted violation probability are weighted and summed to obtain a preliminary comprehensive risk index. If the predicted violation probability is greater than a first preset risk threshold, the risk indicator weights in the rule model engine corresponding to the predicted violation probability are amplified and corrected. The weighted sum of the basic risk score and the predicted violation probability is recalculated based on the amplified and corrected risk indicator weights to obtain the final comprehensive risk index. The final comprehensive risk index is mapped to a risk level, and a visual report containing risk causal analysis is generated.

[0007] In one possible implementation, the multi-source data includes basic retailer characteristic data, specialty case data, marketing order data, and logistics trajectory data, and the preprocessing includes: The multi-source raw data is deduplicated, missing values ​​are filled, and outliers are corrected to obtain cleaned single-source data. The cleaned single-source data are linked and integrated using the retailer code as the unique primary key to construct a wide table dataset for the retailer theme. The categorical features in the retailer-themed wide table dataset are encoded, and derived feature indicators are calculated and generated based on the encoded data. Standardize all numerical features obtained after feature encoding and derivation; The standardized data is validated for consistency, integrity, and validity, and sensitive information is anonymized.

[0008] In one possible implementation, the rule model engine calculates a basic risk score for tobacco retailers based on preset risk indicators and their corresponding weights, including: Obtain each risk indicator and its original value from the preprocessed multi-source data; The original values ​​of each risk indicator are substituted into the corresponding scoring function and mapped to a score value on a 0-10 scale. The basic risk score is obtained by multiplying each score by the weight of the corresponding risk indicator, summing the results, and normalizing them to the 0-1 range.

[0009] In one possible implementation, the predicted probability of violation for tobacco retailers is calculated using the machine learning model engine, including: The machine learning model engine has a built-in pre-trained risk prediction fusion model, which is formed by fusing a logistic regression model, a random forest model, and a gradient boosting tree model through a weighted voting method. The preprocessed multi-source data is used to construct a feature vector, which is then input into the logistic regression model, the random forest model, and the gradient boosting tree model to obtain the first risk probability prediction value, the second risk probability prediction value, and the third risk probability prediction value. The fusion weights of the logistic regression model, random forest model, and gradient boosting tree model are determined based on their AUC values ​​on the validation set. The first risk probability prediction value, the second risk probability prediction value, and the third risk probability prediction value are then weighted and summed based on the fusion weights to obtain the predicted violation probability.

[0010] In one possible implementation, the training process of the risk prediction fusion model includes: Obtain multi-source data of historical tobacco retailers and corresponding violation tags, construct a labeled sample set, and divide the labeled sample set into a training set, a validation set, and a test set; Based on the training set, train the logistic regression model, the random forest model, and the gradient boosting tree model respectively to obtain the trained logistic regression model, the random forest model, and the gradient boosting tree model. The performance metrics of the logistic regression model, random forest model, and gradient boosting tree model are evaluated using the validation set, and the fusion weights of the logistic regression model, random forest model, and gradient boosting tree model are determined based on the performance metrics. Based on the fusion weights, the risk probabilities output by the logistic regression model, random forest model, and gradient boosting tree model are weighted and summed to obtain the fusion prediction result. When the evaluation result of the fusion prediction on the test set meets the preset conditions, the risk prediction fusion model is deployed to the machine learning model engine.

[0011] In one possible implementation, the basic risk score and the violation probability are weighted and summed to obtain a preliminary comprehensive risk index, including: The values ​​of the rule weight coefficient and the machine learning weight coefficient are dynamically adjusted according to the current regulatory business scenario; The basic risk score and predicted violation probability are weighted and summed using the adjusted rule weight coefficients and machine learning weight coefficients to obtain a preliminary comprehensive risk index.

[0012] In one possible implementation, the method further includes: If the basic risk score is less than the second preset risk threshold and the predicted probability of violation is greater than the third preset risk threshold, then the current tobacco retailer is marked as a hidden risk concern and an early warning signal is output. If the basic risk score is greater than the first preset risk threshold and the predicted probability of violation is less than the second preset risk threshold, then the current tobacco retailer is marked as a low-risk, high-compliance entity.

[0013] In one possible implementation, the risk indicators include at least one of basic characteristic indicators, exclusive sales characteristic indicators, marketing characteristic indicators, and logistics characteristic indicators.

[0014] On the other hand, the present invention also provides a risk assessment system for tobacco retailers, comprising: The data acquisition module is used to acquire and preprocess multi-source data of tobacco retailers, including basic characteristic data of retailers, monopoly case data, marketing order data and logistics trajectory data. The dual-model parallel computing module includes a rule model engine and a machine learning model engine. The rule model engine is used to calculate the basic risk score of tobacco retailers based on preset risk indicators and the corresponding weights of each risk indicator. The machine learning model engine is used to calculate the predicted probability of violations of tobacco retailers based on the preprocessed multi-source data. The collaborative decision-making module includes a collaborative weighted fusion module and a dynamic threshold correction module. The collaborative weighted fusion module is used to perform a weighted summation of the basic risk score and the predicted violation probability to obtain a preliminary comprehensive risk index. The dynamic threshold correction module is used to amplify and correct the risk indicator weights in the rule model engine corresponding to the predicted violation probability when the predicted violation probability is greater than a preset risk threshold. The collaborative weighted fusion module recalculates the weighted summation of the basic risk score and the predicted violation probability based on the amplified and corrected risk indicator weights to obtain the final comprehensive risk index. The application output module maps the final comprehensive risk index to a risk level and generates a visual report that includes risk causal analysis.

[0015] Secondly, the present invention also provides an electronic device, comprising: Memory, used to store programs; A processor, coupled to the memory, is configured to execute the program stored in the memory to implement the steps in the risk assessment method for tobacco retailers described in any of the above implementations.

[0016] The beneficial effects of this invention are as follows: The risk assessment method for tobacco retailers provided by this invention inputs preprocessed multi-source data into a rule model engine and a machine learning model engine for parallel computation, simultaneously obtaining a basic risk score and a predicted violation probability. The rule model engine retains expert business logic, making the assessment process interpretable and effectively identifying explicit violations with clear judgment criteria. The machine learning model engine, based on data mining capabilities, can capture hidden and complex latent risk patterns, compensating for the deficiency of a single rule model in identifying new violations and improving overall risk identification capabilities. Furthermore, when the predicted violation probability exceeds a first preset risk threshold, the risk indicator weights in the rule model engine are amplified and corrected. The weighted sum of the basic risk score and the predicted violation probability is recalculated based on the amplified and corrected risk indicator weights, realizing dynamic adjustment of risk indicator weights based on prediction results. This effectively corrects deviations when a single model exhibits extreme bias, solving the problem of false positives or false negatives caused by sample quality and data distribution shifts in machine learning models, reducing error propagation during the assessment process, and improving the accuracy of risk assessment results. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 A schematic flowchart of an embodiment of the risk assessment method for tobacco retailers provided by the present invention; Figure 2 For the present invention Figure 1 A schematic diagram of an embodiment of step S102; Figure 3 For the present invention Figure 1 A schematic diagram of another embodiment of step S102; Figure 4 This is a schematic diagram illustrating the training process of the risk prediction fusion model of the present invention; Figure 5 For the present invention Figure 1 A schematic flowchart of an embodiment of step S103; Figure 6 A schematic diagram of an embodiment of the risk assessment system for tobacco retailers provided by the present invention; Figure 7 A schematic diagram of an embodiment of the electronic device provided by the present invention. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0020] In the description of the embodiments of the present invention, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0021] The terms "first," "second," etc., used in the embodiments of this invention are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a technical feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature.

[0022] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0023] This invention provides a risk assessment method, system, and electronic device for tobacco retailers, which will be described below.

[0024] Figure 1 This is a schematic flowchart of an embodiment of the risk assessment method for tobacco retailers provided by the present invention. The implementing entity of the method can be a computer risk assessment system deployed in the tobacco monopoly regulatory department, and it can be applied to digital supervision scenarios of tobacco monopoly. Figure 1 As shown, the risk assessment methods for tobacco retailers include: S101. Obtain multi-source data of tobacco retailers and preprocess it. The multi-source data includes basic characteristic data of retailers, monopoly case data, marketing order data and logistics trajectory data.

[0025] S102. The preprocessed multi-source data is input into the rule model engine and the machine learning model engine for parallel computation. The rule model engine calculates the basic risk score of the tobacco retailer based on the preset risk indicators and the corresponding weights of each risk indicator. The machine learning model engine calculates the predicted probability of violation of the tobacco retailer.

[0026] S103. The basic risk score and the predicted violation probability are weighted and summed to obtain a preliminary comprehensive risk index. If the predicted violation probability is greater than a first preset risk threshold, the risk indicator weights in the rule model engine corresponding to the predicted violation probability are amplified and corrected, and the weighted sum of the basic risk score and the predicted violation probability is recalculated based on the amplified and corrected risk indicator weights to obtain the final comprehensive risk index.

[0027] S104. Map the final comprehensive risk index to a risk level and generate a visual report containing risk cause analysis.

[0028] In summary, the risk assessment method for tobacco retailers provided in this embodiment of the invention obtains a basic risk score and a predicted violation probability by inputting preprocessed multi-source data into a rule model engine and a machine learning model engine for parallel computation. The rule model engine retains expert business logic, making the assessment process interpretable and effectively identifying explicit violations with clear judgment criteria. The machine learning model engine, based on data mining capabilities, can capture hidden and complex latent risk patterns, compensating for the deficiency of a single rule model in identifying new violations and improving overall risk identification capabilities. Furthermore, when the predicted violation probability exceeds a first preset risk threshold, the risk indicator weights in the rule model engine are amplified and corrected. The weighted sum of the basic risk score and the predicted violation probability is recalculated based on the amplified and corrected risk indicator weights. This achieves dynamic adjustment of risk indicator weights based on the prediction results, effectively correcting deviations when a single model exhibits extreme bias. It solves the problem of false positives or false negatives caused by sample quality and data distribution shifts in machine learning models, reduces error propagation during the assessment process, and improves the accuracy of risk assessment results.

[0029] In some embodiments of the present invention, the multi-source data includes basic retailer characteristic data, exclusive sales case data, marketing order data, and logistics trajectory data. The basic retailer characteristic data includes business format, price level, business district classification, urban / rural classification, business scale, and new customer identification. The exclusive sales case data includes historical violation counts, violation types, violation times, penalty results, and license status. The marketing order data includes periodic order volume, order frequency, order fulfillment rate, shelf placement rate, and monthly order volatility. The logistics trajectory data includes delivery and receipt addresses, receipt times, receipt offset distances, offset counts, and route receipt intervals. The preprocessing includes: Data cleaning: The multi-source raw data is deduplicated, missing values ​​are filled, and outliers are corrected to obtain cleaned single-source data. Specifically, the multi-source data is deduplicated to remove duplicate records. For missing values, numerical fields are filled with the mean or median, categorical fields are filled with the mode or set to the default category, and key fields such as the number of historical violations are treated as no record when they are missing. For outliers, the 3σ principle or interquartile range (IQR) method is used to identify them and they are corrected or truncated.

[0030] Data integration: The cleaned single-source data is used as the retailer code (retail license number) as the unique primary key. The basic characteristic data of retailers, the case data of retailers, the marketing order data and the logistics trajectory data from the special sales supervision system, the marketing business system and the logistics and distribution system are linked and integrated to construct a retailer-themed wide table dataset. Feature Encoding and Derivation: The categorical features in the retailer theme wide table dataset are encoded, and derived feature indicators are calculated and generated based on the encoded data. Specifically, ordinal encoding is used for ordered categorical features such as grade level and urban / rural classification, and one-hot encoding is used for nominal categorical features such as business format and business district classification. Derivative feature indicators such as order fulfillment rate, shelf placement rate, monthly order volatility, delivery offset distance, and route delivery interval are calculated and generated.

[0031] Standardization processing: All numerical features obtained after feature encoding and derivation are standardized; specifically, numerical features with different dimensions, such as periodic order quantity, historical violation count, and receipt offset distance, are normalized using Z-score standardization or min-max normalization to eliminate dimensional differences; time fields are standardized to the standard format of "year-month-day; hour:minute:second", and numerical fields are standardized to the unit of measurement.

[0032] Data verification and anonymization: The standardized data is verified for consistency, integrity and validity, and sensitive information is anonymized; the sensitive information includes, but is not limited to, the retailer's name, ID number and contact information.

[0033] Through the above preprocessing, the heterogeneous raw data from different sources, with varying formats and quality, are transformed into high-quality, standardized, and compliant model input data, providing a consistent and reliable data foundation for the parallel computing of the rule model engine and the machine learning model engine.

[0034] like Figure 2 As shown, in some embodiments of the present invention, step S102 involves calculating the basic risk score of a tobacco retailer using the rule model engine based on preset risk indicators and their corresponding weights, including: S201. Obtain each risk indicator and its original value from the preprocessed multi-source data.

[0035] It should be noted that the risk indicators include at least one of the following: basic characteristic indicators (such as business format, grade level, business district classification, new customer identification, etc.), exclusive sales characteristic indicators (such as historical number of violations, license status, etc.), marketing characteristic indicators (such as order fulfillment rate, shelf placement rate, monthly order volatility, etc.), and logistics characteristic indicators (such as delivery offset distance, number of offsets, etc.).

[0036] S202. Substitute the original values ​​of each risk indicator into the corresponding scoring function to map them into a score value on a 0-10 scale. S203. Multiply each score by the weight of the corresponding risk indicator, sum them, and normalize them to the 0-1 range to obtain the basic risk score.

[0037] The formula for expressing the basic risk score is as follows: ; in, Basic risk score, For the first The weight of each risk indicator For the first Scoring functions for each risk indicator Basic risk score After normalization, the value range is 0-1.

[0038] It should be noted that the rule model engine has a built-in business rule library and subjective weighting. Based on explicit business logic defined by experts (such as compliance indicator thresholds and weighted summation formulas), it performs logical judgments and calculations on the accessed data, so that all scoring logic has clear business rule support (such as "6 points for a subscription rate of less than 60%" and "10 points for a record of genuine cigarette outflow in the past year"). Grassroots regulatory personnel can clearly understand the source of each deduction or bonus item, ensuring that the evaluation results meet the basic requirements of regulatory policies.

[0039] like Figure 3 As shown, in some embodiments of the present invention, step S102, which calculates the predicted probability of violation for tobacco retailers using the machine learning model engine, includes: S301. The machine learning model engine has a built-in pre-trained risk prediction fusion model, which is formed by fusing a logistic regression model, a random forest model, and a gradient boosting tree model through a weighted voting method. S302. The preprocessed multi-source data is used to construct a feature vector, which is then input into the logistic regression model, the random forest model, and the gradient boosting tree model to obtain the first risk probability prediction value, the second risk probability prediction value, and the third risk probability prediction value.

[0040] The feature vector can be represented as: , In terms of feature dimension, in addition to the original features, it also includes interaction features generated by cross-multiplication of any two original features: ;in, , For any two standardized original features, such as "new customer identification × order fluctuation" or "business district nature × proportion of in-demand cigarettes".

[0041] S303. Determine the fusion weights of the logistic regression model, random forest model, and gradient boosting tree model on the validation set based on the AUC values ​​of the logistic regression model, random forest model, and gradient boosting tree model. Based on the fusion weights, perform a weighted summation of the first risk probability prediction value, the second risk probability prediction value, and the third risk probability prediction value to obtain the predicted violation probability.

[0042] It should be noted that the formula for calculating the first risk probability prediction value is as follows: ; in, This is the predicted value for the first risk probability. For the Sigmoid function, For the intercept term, For the first The regression coefficients of each feature For the first 1 eigenvector.

[0043] The formula for calculating the second risk probability prediction value is: ; in, This is the predicted value for the second risk probability. The number of decision trees in the random forest. For the first The risk probability output by each decision tree.

[0044] The formula for calculating the third risk probability prediction value is as follows: ; in, This is the predicted value for the third risk probability. For the Sigmoid function, These are the initial values ​​for the model. For the first CART regression tree, For learning rate, This represents the number of iteration rounds.

[0045] The formula for calculating the predicted probability of violation is as follows: ; ; in, To predict the probability of violations, The fusion weights are obtained by normalizing the AUC values ​​of the validation sets for the logistic regression model, random forest model, and gradient boosting tree model.

[0046] It should be noted that, ,and ,therefore .

[0047] like Figure 4 As shown, in some embodiments of the present invention, the training process of the risk prediction fusion model includes: S401. Obtain multi-source data of historical tobacco retailers and corresponding violation labels, construct a labeled sample set, and divide the labeled sample set into a training set, a validation set, and a test set.

[0048] Specifically, using a specific historical point in time as a benchmark, multi-source data of the retailer within a historical time window (e.g., the previous 24 months) prior to the benchmark is extracted from the data input layer. After the aforementioned preprocessing and standardization, a feature vector x is constructed. Whether the retailer has any violations within a subsequent preset observation period from the benchmark is used as the label y (y=1 indicates a risk has occurred, i.e., a violation occurred during the observation period; y=0 indicates normal). The length of the observation period is consistent with the prediction cycle of the machine learning model engine, with a default of 12 months and support for customization. When the prediction cycle is customized, the statistical caliber of the label y is adjusted accordingly, and the samples are reconstructed. The feature vector x and the label y are paired to form a labeled sample set. The sample set is divided into a training set, a validation set, and a test set (e.g., 6:2:2) according to the chronological order of the benchmark, so that the benchmark of the validation set and the test set samples is later than the benchmark of the training set samples, and the feature window of any sample does not overlap with the observation period to avoid data leakage. To address the class imbalance problem with a low proportion of risk samples, SMOTE synthetic oversampling is used on the training set to expand the minority class samples.

[0049] S402. Based on the training set, train the logistic regression model, the random forest model, and the gradient boosting tree model respectively to obtain the trained logistic regression model, the random forest model, and the gradient boosting tree model.

[0050] It should be noted that the training of the logistic regression model is as follows: with the standardized feature vector x as input and the risk probability as output, an L2 regularization term is added to the logistic loss function, and the regression coefficients are iteratively solved using the L-BFGS optimization algorithm to obtain the trained logistic regression model, which serves as the interpretability baseline.

[0051] Random forest model training: Based on the training set, Bootstrap is used to generate T1 decision trees with replacement (e.g., T1=300). Each node of each decision tree randomly selects m candidate features from all features and selects the optimal splitting feature according to the Gini coefficient criterion. At the same time, the maximum depth (e.g., 8~12 layers) and the minimum number of samples in the leaf nodes (e.g., 10) are set to control overfitting. The mean of the output of all decision trees is used as the risk probability to obtain the trained random forest model, which is used to capture nonlinear associations and feature interactions.

[0052] Gradient boosting tree model training: The gradient boosting framework is used to initialize the model with the log odds of the sample labels. In each iteration, a CART regression tree is fitted with the negative gradient of the second-order Taylor expansion of the loss function. The learning rate η (e.g., 0.05), the maximum number of iterations (e.g., 500), and the maximum tree depth (e.g., 5) are set. During training, the validation set AUC value is monitored. When the validation set AUC no longer increases for a preset number of iterations (e.g., 50 iterations), early stopping is triggered, resulting in a trained gradient boosting tree model, which is used to improve prediction accuracy.

[0053] S403. Evaluate the performance metrics of the logistic regression model, random forest model, and gradient boosting tree model using the validation set, and determine the fusion weights of the logistic regression model, random forest model, and gradient boosting tree model based on the performance metrics.

[0054] Wherein, the fusion weights are according to The AUC values ​​calculated for each individual model are normalized to obtain the values.

[0055] S404. Based on the fusion weights, the risk probabilities output by the logistic regression model, the random forest model, and the gradient boosting tree model are weighted and summed to obtain the fusion prediction result; S405. When the evaluation result of the fusion prediction result on the test set meets the preset conditions, the risk prediction fusion model is deployed to the machine learning model engine.

[0056] It should be noted that the preset conditions include, but are not limited to, AUC, KS, precision, recall, and F1 score all meeting preset standards. Once these standards are met, the model is deployed to the machine learning model engine. Additionally, newly accumulated labeled samples are incorporated into the training set according to a preset update cycle (e.g., quarterly), and the above training steps are repeated for retraining, synchronously updating model parameters and fusion weights to adapt to changes in risk patterns.

[0057] like Figure 5 As shown, in some embodiments of the present invention, step S103 involves a weighted summation of the basic risk score and the violation probability to obtain a preliminary comprehensive risk index, including: S501. Dynamically adjust the values ​​of rule weight coefficients and machine learning weight coefficients according to the current regulatory business scenario.

[0058] It should be noted that, in this embodiment of the invention, the rule weight coefficients are dynamically configured according to the business scenario. and machine learning weight coefficients The possible values ​​of include: Routine supervision model: , The rules-based model ensures that the assessment results meet the basic requirements of regulatory policies.

[0059] Special Action Mode: When carrying out special campaigns to combat the outflow of cigarettes, this embodiment of the invention automatically and temporarily increases the rule weight of relevant violation indicators (e.g., increasing the weight of the indicator related to "outflow of cigarettes" from 10% to 15%), while adjusting... , .

[0060] High-confidence model mode: When the machine learning model has an AUC ≥ 0.85 on the validation set and a prediction accuracy ≥ 80% over the past 3 months, this embodiment of the invention automatically... Increased to 0.6, It dropped to 0.4.

[0061] S502. The basic risk score and the predicted violation probability are weighted and summed using the adjusted rule weight coefficient and machine learning weight coefficient to obtain a preliminary comprehensive risk index.

[0062] The formula for calculating the comprehensive risk index is as follows: ; In the formula, As a comprehensive risk index, For rule weight coefficients, These are machine learning weight coefficients, and ; This is the normalized baseline risk score (mapping 0-100 points to the 0-1 range). To predict the probability of violations.

[0063] In some embodiments of the present invention, the method further includes: If the basic risk score is less than the second preset risk threshold and the predicted probability of violation is greater than the third preset risk threshold, then the current tobacco retailer is marked as a hidden risk concern and an early warning signal is output. If the basic risk score is greater than the first preset risk threshold and the predicted probability of violation is less than the second preset risk threshold, then the current tobacco retailer is marked as a low-risk, high-compliance entity.

[0064] It should be noted that when the predicted violation probability is greater than a first preset risk threshold (e.g., 0.7), this embodiment of the invention automatically triggers an amplification correction of the risk indicator weights in the rule model corresponding to the predicted violation probability (e.g., temporarily increasing the weight of the "abnormal logistics trajectory" indicator by 50%), to prevent high-risk targets from being missed due to some rule indicators being normal. The risk indicators corresponding to the predicted violation probability are determined through SHAP value analysis: the SHAP value of each risk indicator with respect to the predicted violation probability is calculated, and risk indicators with positive SHAP values ​​are determined as the risk indicators corresponding to the predicted violation probability.

[0065] When the basic risk score is less than the second preset risk threshold (e.g., 0.3) but the predicted probability of violation is greater than or equal to the third preset risk threshold (e.g., 0.5), it is marked as a "hidden risk concern", a warning signal is forcibly output, and the area inspector is advised to conduct on-site verification.

[0066] When the basic risk score is below the first preset risk threshold (e.g., 0.7) but the predicted probability of violation is less than the second preset risk threshold (e.g., 0.3), it is marked as a "low-risk, high-compliance object", and the frequency of supervision is appropriately reduced to optimize the allocation of regulatory resources.

[0067] Through the aforementioned dynamic threshold correction mechanism, a two-way correction between the rule model and the machine learning model is achieved: on the one hand, when the machine learning model makes extreme predictions, the risk indicator weights in the rule model are amplified, enabling the rule model to play a greater corrective role in the final assessment; on the other hand, when there is a significant discrepancy between the rule model score and the machine learning prediction, differentiated handling suggestions are provided to regulators by marking objects of hidden risk concern or low-risk, highly compliant objects.

[0068] It should be noted that, based on the interval mapping relationship, the final comprehensive risk index of the 0-1 interval is divided into several risk levels: extremely high, high, medium, and low. Red Alert (Extremely High Risk): ; Orange alert (high risk): ; Yellow alert (medium risk): ; Blue alert (low risk): .

[0069] Visualized reports include, but are not limited to: Retailer basic information: retailer name, license number, business address, business type, etc.

[0070] Risk assessment results: overall risk level and final overall risk index.

[0071] Detailed scores for each dimension: Detailed scores for basic features, exclusive features, marketing features, and logistics features extracted from the calculation results of the rule model engine.

[0072] Rule Model Deduction Item Details and Corresponding Business Rules: Traverse all indicators that trigger deductions in the rule model engine, extract the indicator name, original value, score value and corresponding business rule description of each indicator, form a detailed list of deduction items, and sort them from high to low score values.

[0073] Ranking of high-risk features identified by machine learning models by contribution: The contribution of each feature to the prediction result is calculated using SHAP values, and the features are ranked from highest to lowest contribution.

[0074] Differentiated regulatory strategy recommendations: Based on the risk level corresponding to the final comprehensive risk index, a pre-set regulatory strategy template is matched to generate recommendations on inspection frequency and key areas of investigation.

[0075] Credit score adjustment recommendations: Based on the final comprehensive risk index and risk level, credit score adjustment recommendations are generated according to the preset credit score adjustment rules.

[0076] In summary, the visualization report summarizes all risk indicators, indicator scores, weight information, risk levels, and object labeling results involved in the calculation, and lists the risk factors that lead to the high risk of the retailer. It can display a panoramic view of the risk in the jurisdiction on a large visualization screen (marking high-risk retailer clusters in map form), and automatically push regulatory tasks to the mobile terminals of grassroots inspectors through the regulatory platform to achieve closed-loop management.

[0077] To better implement the risk assessment method for tobacco retailers in this embodiment of the invention, based on the risk assessment method for tobacco retailers, correspondingly, as follows: Figure 6 As shown, this embodiment of the invention also provides a risk assessment system for tobacco retailers. The risk assessment system 600 for tobacco retailers includes: Data acquisition module 601 is used to acquire and preprocess multi-source data of tobacco retailers, including basic characteristic data of retailers, monopoly case data, marketing order data and logistics trajectory data; The dual-model parallel computing module 602 includes a rule model engine and a machine learning model engine. The rule model engine is used to calculate the basic risk score of tobacco retailers based on preset risk indicators and the corresponding weights of each risk indicator. The machine learning model engine is used to calculate the predicted probability of violations of tobacco retailers based on the preprocessed multi-source data. The collaborative decision-making module 603 includes a collaborative weighted fusion module and a dynamic threshold correction module. The collaborative weighted fusion module is used to perform a weighted summation of the basic risk score and the violation probability to obtain a preliminary comprehensive risk index. The dynamic threshold correction module is used to amplify and correct the risk indicator weights in the rule model engine corresponding to the predicted violation probability when the predicted violation probability is greater than a preset risk threshold. The collaborative weighted fusion module recalculates the weighted summation of the basic risk score and the predicted violation probability based on the amplified and corrected risk indicator weights to obtain the final comprehensive risk index. The application output module 604 is used to map the final comprehensive risk index to a risk level and generate a visual report containing risk cause analysis.

[0078] The risk assessment system 600 for tobacco retailers provided in the above embodiments can implement the technical solutions described in the embodiments of the risk assessment method for tobacco retailers. The specific implementation principles of each module or unit can be found in the corresponding content of the embodiments of the risk assessment method for tobacco retailers, and will not be repeated here.

[0079] This invention uses a specific retailer as an example to illustrate the feasibility and accuracy of the solution: The system automatically extracts multi-source operational data from the tobacco marketing business system, the monopoly supervision system, the logistics and distribution system, and the credit management system according to a daily update frequency. This embodiment selects retailer Mr. Li from the jurisdiction as the evaluation object. The accessed multi-source data covers four dimensions: basic characteristics, monopoly supervision characteristics, marketing order characteristics, and logistics trajectory characteristics, as detailed below: (1) Basic characteristics data: The business type is "convenience store", the grade is "15", the business district is "residential area", the urban and rural area is "main urban area", the business scale is "medium", and the network access time is 24 months (not a new user).

[0080] (2) Exclusive sales characteristic data: 0 historical violations, normal license status, no abnormalities such as address mismatch or license mismatch.

[0081] (3) Marketing order data: monthly order volume of 500 units, order frequency of 4 times / month, width order full rate of 85%, provincial cigarette order full rate of 80%, shelf placement rate of 90%, and order volatility of 20% in the past 3 months.

[0082] (4) Logistics trajectory data: The delivery and receipt address deviates from the registered address by 500 meters, with 3 deviations in the past 6 months (the highest deviation in a single month is 2), and the average interval between delivery and receipt is 15 seconds.

[0083] The data acquisition module 601 performs format validation on the above data (checking field integrity and data type validity). After the validation is successful, the data is stored in the system cache area for use by the dual-model parallel computing module 602.

[0084] The rule model engine reads Li's standardized input data from the cache and calculates it item by item according to the pre-configured business rule base. The scores of each secondary indicator are shown in Table 1 below: Table 1: Indicator Scores

[0085] The scoring function is a piecewise function that maps the raw values ​​of each risk indicator to a 0-10 score based on business rules. Each scoring function follows a monotonically increasing principle: "the higher the risk level, the higher the mapped score." The scores for each secondary indicator are... Primary indicator score , The weights are the weights of the secondary indicators, where the sum of the weights of each secondary indicator is 1.

[0086] According to Table 1, the scores of each primary indicator (0-10 points) are calculated as follows: Basic characteristics score 3.5, Exclusive sales characteristics score 0, Marketing characteristics score 3.4, Logistics characteristics score 8.0.

[0087] The weights of the primary indicators are: basic 20%, exclusive sales 35%, marketing 30%, and logistics 15%.

[0088] Overall score (out of 0-100): = (3.5 / 10×0.2 + 0 / 10×0.35 + 3.4 / 10×0.3 + 8.0 / 10×0.15) × 100 = (0.07 + 0 + 0.102 + 0.12) × 100 = 29.2 points, after normalization = 0.292.

[0089] The machine learning model engine reads Li's data from the cache and extracts high-dimensional feature vectors. The feature vectors include original features (24 dimensions) and interaction features (8 dimensions), totaling 32 feature dimensions. For example: order volume fluctuation coefficient 0.20, receipt deviation from standardized value 2.3 (exceeding the regional mean by 2.3 standard deviations), offset frequency 0.5 times / month, interaction feature "business district nature × proportion of in-demand cigarettes" is residential area × 0.32, and interaction feature "price range × order fluctuation" is 15 price ranges × 0.20.

[0090] The feature vector input has been loaded into the memory of the risk prediction fusion model. In this embodiment, the risk prediction fusion model is formed by a weighted fusion of three single models: a logistic regression model with a validation set AUC=0.72; a random forest model with a validation set AUC=0.78; and a gradient boosting tree model with a validation set AUC=0.84.

[0091] The fusion weights are assigned based on the normalized AUC values ​​of each individual model on the validation set. The gradient boosting tree model has the highest fusion weight (0.45), followed by the logistic regression model (0.25), and the random forest model (0.30).

[0092] The risk prediction fusion model outputs the predicted probability of Li committing a violation within the next 12 months. It is 0.75.

[0093] Currently in routine monitoring mode, the system has set rule weights. Machine learning weights .

[0094] Calculate the overall risk index: .

[0095] The system detected Li's = 0.75 > the first preset risk threshold of 0.7, automatically triggering the dynamic correction mechanism. First, determine the risk indicators corresponding to the predicted probability of violation. Specifically, input Li's feature vector into the SHAP interpreter to calculate the impact of each risk indicator on the prediction result. The SHAP value was calculated. The results show that the SHAP value of "Delivery Offset Distance" under the primary indicator of logistics characteristics is positive and has the highest contribution (35%), while the SHAP value of "Offset Count" is positive but has a lower contribution (18%). Therefore, "Delivery Offset Distance" is determined as the risk indicator corresponding to the predicted probability of violation. Specific corrections: The weight of the secondary indicator "Delivery Offset Distance" under the primary indicator of "Logistics Characteristics" in the rule model is temporarily increased by 50%, while the weight of the secondary indicator "Offset Count" is adjusted accordingly (from the original weight increase and decrease) to ensure that the sum of the weights of all secondary indicators under the primary indicator of logistics characteristics remains 1. αTemporarily adjusted to 0.5. β Adjusted to 0.5.

[0096] Recalculate the overall risk index: , After the revision, Li's comprehensive risk index increased from 0.475 to 0.521.

[0097] System judgment = 0.521 ≥ 0.4 and < 0.6, therefore Li is judged to be in the "yellow alert (medium risk)" category.

[0098] However, due to Li's = 0.75 ≥ 0.7, and = 0.292 < the second preset risk threshold of 0.3, the system additionally triggers the "Hidden Risk Attention" flag, adding the retailer to the key observation list, and recommends prioritizing on-site verification.

[0099] The application output layer generates a risk assessment report for Li. Retailer basic information: Retailer name: Li; License number: 420200XXXXXX; Business address: No. XX, XX Road, XX District, XX City; Business type: Convenience store.

[0100] Risk assessment results: Overall risk level: Yellow alert (medium risk); Overall risk index: 0.521; Hidden risk concern marker: Yes.

[0101] Detailed scores for each dimension (0-100 points, higher scores indicate greater risk): Basic feature score: 17.5 (low risk); Exclusive sales feature score: 0 (extremely low risk); Marketing feature score: 34 (medium risk); Logistics feature score: 80 (extremely high risk).

[0102] Rule Model Deduction Details: Logistics Characteristics - Delivery Offset Distance (500 meters, exceeding threshold > 200 meters): Deduct 8 points → Corresponding Business Rule: The delivery address deviates from the registered address by more than 200 meters, which may indicate a risk of unauthorized relocation of the business address; Logistics Characteristics - Offset Frequency (3 times in 6 months): Deduct 8 points → Corresponding Business Rule: Monthly offset frequency ≥ 3 times may indicate abnormal receiving behavior; Basic Characteristics - Business District Nature (Residential Area): Deduct 8 points → Corresponding Business Rule: Residential areas are areas with frequent illegal cigarette sales; Marketing Characteristics - Monthly Order Volatility Rate (20%): Deduct 4 points → Corresponding Business Rule: The order volatility rate ranks in the top 20%, indicating abnormal business stability.

[0103] Contribution of high-risk features identified by machine learning models (ranked based on SHAP values): Delivery offset distance (35%); Monthly order volatility (22%); Number of offsets (18%); Interaction between business district characteristics and the proportion of in-demand cigarettes (12%); Order volume volatility coefficient (8%). The remaining features contribute a total of 5%.

[0104] Regulatory strategy recommendations: Frequency of supervision: It is recommended to conduct one inspection next month (yellow warning standard); Key areas of investigation: Prioritize verifying whether the business address is consistent with the registered address (for abnormal delivery deviations); check for any abnormal receiving behavior (for abnormal number of deviations); verify the reasons for order fluctuations (for abnormal order volatility).

[0105] Credit linkage: It is recommended that the results of this assessment be included in the retailer's credit file as a reference for credit rating.

[0106] The aforementioned report was displayed on a large visual screen and automatically pushed to the mobile devices of regional inspectors through the regulatory platform, triggering on-site verification tasks.

[0107] like Figure 7 As shown, the present invention also provides an electronic device 700. The electronic device 700 includes: Memory 701 is used to store programs; The processor 702, coupled to the memory 701, is used to execute the program stored in the memory 701 to implement the steps in the risk assessment method for tobacco retailers described in any of the above implementations. Figure 7 Only some components of the sub-device 700 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0108] In some embodiments, processor 702 may be a central processing unit (CPU), microprocessor, or other data processing chip, used to run program code stored in memory 701 or process data, such as the risk assessment method for tobacco retailers in this invention.

[0109] In some embodiments, processor 702 may be a single server or a group of servers. The server group may be centralized or distributed. In some embodiments, processor 702 may be local or remote. In some embodiments, processor 702 may be implemented on a cloud platform. In one embodiment, the cloud platform may include a private cloud, public cloud, hybrid cloud, community cloud, distributed cloud, intranet, multi-cloud, etc., or any combination thereof.

[0110] In some embodiments, memory 701 may be an internal storage unit of electronic device 700, such as a hard disk or memory of electronic device 700. In other embodiments, memory 701 may also be an external storage device of electronic device 700, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. equipped on electronic device 700.

[0111] Furthermore, the memory 701 may include both internal storage units of the electronic device 700 and external storage devices. The memory 701 is used to store application software and various types of data installed on the electronic device 700.

[0112] In one embodiment, when processor 702 executes the risk assessment program for tobacco retailers stored in memory 701, the following steps may be implemented: Acquire and preprocess multi-source data of tobacco retailers, including basic characteristic data of retailers, monopoly case data, marketing order data, and logistics trajectory data; The preprocessed multi-source data are input into the rule model engine and the machine learning model engine for parallel computation. The rule model engine calculates the basic risk score of tobacco retailers based on the preset risk indicators and the corresponding weights of each risk indicator. The machine learning model engine calculates the predicted probability of violations of tobacco retailers. The basic risk score and the probability of violation are weighted and summed to obtain a preliminary comprehensive risk index. If the predicted probability of violation is greater than a first preset risk threshold, the risk indicator weights in the rule model engine corresponding to the predicted probability of violation are amplified and corrected. The weighted sum of the basic risk score and the predicted probability of violation is recalculated based on the amplified and corrected risk indicator weights to obtain the final comprehensive risk index. The final comprehensive risk index is mapped to a risk level, and a visual report containing risk causal analysis is generated.

[0113] It should be understood that when the processor 702 executes the risk assessment program for tobacco retailers in the memory 701, in addition to the functions mentioned above, it can also perform other functions, as detailed in the description of the corresponding method embodiments above.

[0114] Those skilled in the art will understand that all or part of the processes of the methods described in the above embodiments can be implemented by a computer program instructing related hardware (such as a processor, controller, etc.), and the computer program can be stored in a computer-readable storage medium. The computer-readable storage medium may be a disk, optical disk, read-only memory, or random access memory, etc.

[0115] The risk assessment method, system, and electronic equipment for tobacco retailers provided by this invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this invention. Therefore, the content of this specification should not be construed as a limitation of this invention.

Claims

1. A risk assessment method for tobacco retailers, characterized in that, include: Acquire and preprocess multi-source data of tobacco retailers, including basic characteristic data of retailers, monopoly case data, marketing order data, and logistics trajectory data; The preprocessed multi-source data are input into the rule model engine and the machine learning model engine for parallel computation. The rule model engine calculates the basic risk score of tobacco retailers based on the preset risk indicators and the corresponding weights of each risk indicator. The machine learning model engine calculates the predicted probability of violations of tobacco retailers. The basic risk score and the predicted violation probability are weighted and summed to obtain a preliminary comprehensive risk index. If the predicted violation probability is greater than a first preset risk threshold, the risk indicator weights in the rule model engine corresponding to the predicted violation probability are amplified and corrected. The weighted sum of the basic risk score and the predicted violation probability is recalculated based on the amplified and corrected risk indicator weights to obtain the final comprehensive risk index. The final comprehensive risk index is mapped to a risk level, and a visual report containing risk causal analysis is generated.

2. The risk assessment method for tobacco retailers according to claim 1, characterized in that, The preprocessing includes: The multi-source raw data is deduplicated, missing values ​​are filled, and outliers are corrected to obtain cleaned single-source data. The cleaned single-source data are linked and integrated using the retailer code as the primary key to construct a wide table dataset for the retailer theme. The categorical features in the retailer-themed wide table dataset are encoded, and derived feature indicators are calculated and generated based on the encoded data. Standardize all numerical features obtained after feature encoding and derivation; The standardized data is validated for consistency, integrity, and validity, and sensitive information is anonymized.

3. The risk assessment method for tobacco retailers according to claim 1, characterized in that, The rule model engine calculates a basic risk score for tobacco retailers based on preset risk indicators and their corresponding weights, including: Obtain each risk indicator and its original value from the preprocessed multi-source data; The original values ​​of each risk indicator are substituted into the corresponding scoring function and mapped to a score value on a 0-10 scale. The basic risk score is obtained by multiplying each score by the weight of the corresponding risk indicator, summing the results, and normalizing them to the 0-1 range.

4. The risk assessment method for tobacco retailers according to claim 1, characterized in that, The predicted probability of violations by tobacco retailers is calculated using the machine learning model engine, including: The machine learning model engine has a built-in pre-trained risk prediction fusion model, which is formed by fusing a logistic regression model, a random forest model, and a gradient boosting tree model through a weighted voting method. The preprocessed multi-source data is used to construct a feature vector, which is then input into the logistic regression model, the random forest model, and the gradient boosting tree model to obtain the first risk probability prediction value, the second risk probability prediction value, and the third risk probability prediction value. The fusion weights of the logistic regression model, random forest model, and gradient boosting tree model are determined based on their AUC values ​​on the validation set. The first risk probability prediction value, the second risk probability prediction value, and the third risk probability prediction value are then weighted and summed based on the fusion weights to obtain the predicted violation probability.

5. The risk assessment method for tobacco retailers according to claim 4, characterized in that, The training process of the risk prediction fusion model includes: Obtain multi-source data of historical tobacco retailers and corresponding violation tags, construct a labeled sample set, and divide the labeled sample set into a training set, a validation set, and a test set; Based on the training set, train the logistic regression model, the random forest model, and the gradient boosting tree model respectively to obtain the trained logistic regression model, the random forest model, and the gradient boosting tree model. The performance metrics of the logistic regression model, random forest model, and gradient boosting tree model are evaluated using the validation set, and the fusion weights of the logistic regression model, random forest model, and gradient boosting tree model are determined based on the performance metrics. Based on the fusion weights, the risk probabilities output by the logistic regression model, random forest model, and gradient boosting tree model are weighted and summed to obtain the fusion prediction result. When the evaluation result of the fusion prediction on the test set meets the preset conditions, the risk prediction fusion model is deployed to the machine learning model engine.

6. The risk assessment method for tobacco retailers according to claim 5, characterized in that, The basic risk score and the probability of violation are weighted and summed to obtain a preliminary comprehensive risk index, including: The values ​​of the rule weight coefficient and the machine learning weight coefficient are dynamically adjusted according to the current regulatory business scenario; The basic risk score and predicted violation probability are weighted and summed using the adjusted rule weight coefficients and machine learning weight coefficients to obtain a preliminary comprehensive risk index.

7. The risk assessment method for tobacco retailers according to claim 6, characterized in that, The method further includes: If the basic risk score is less than the second preset risk threshold and the predicted probability of violation is greater than the third preset risk threshold, then the current tobacco retailer is marked as a hidden risk concern and an early warning signal is output. If the basic risk score is greater than the first preset risk threshold and the predicted probability of violation is less than the second preset risk threshold, then the current tobacco retailer is marked as a low-risk, high-compliance entity.

8. The risk assessment method for tobacco retailers according to claim 1, characterized in that, The risk indicators include at least one of the following: basic characteristic indicators, exclusive sales characteristic indicators, marketing characteristic indicators, and logistics characteristic indicators.

9. A risk assessment system for tobacco retailers, characterized in that, include: The data acquisition module is used to acquire and preprocess multi-source data of tobacco retailers, including basic characteristic data of retailers, monopoly case data, marketing order data and logistics trajectory data. The dual-model parallel computing module includes a rule model engine and a machine learning model engine. The rule model engine is used to calculate the basic risk score of tobacco retailers based on preset risk indicators and the weights corresponding to each risk indicator. The machine learning model engine is used to calculate the predicted probability of violations by tobacco retailers based on the preprocessed multi-source data. The collaborative decision-making module includes a collaborative weighted fusion module and a dynamic threshold correction module; The collaborative weighted fusion module is used to perform a weighted summation of the basic risk score and the predicted violation probability to obtain a preliminary comprehensive risk index; The dynamic threshold correction module is used to amplify and correct the risk indicator weights corresponding to the predicted violation probability in the rule model engine when the predicted violation probability is greater than a preset risk threshold. The collaborative weighted fusion module recalculates the weighted sum of the basic risk score and the predicted violation probability based on the amplified and corrected risk indicator weights to obtain the final comprehensive risk index. The application output module maps the final comprehensive risk index to a risk level and generates a visual report that includes risk causal analysis.

10. An electronic device, characterized in that, include: Memory, used to store programs; A processor, coupled to the memory, is configured to execute the program stored in the memory to implement the steps of the method according to any one of claims 1 to 8.