Method and device for identifying risk order of online car-hailing marketing activity

By using LightGBM model and feature engineering to identify risk orders in online ride-hailing marketing activities, the problems of low identification accuracy and high maintenance costs in the existing technology are solved, and higher identification accuracy and flexibility are achieved, and errors are reduced. judgment rate and maintenance cost.

CN118967193APending Publication Date: 2024-11-15BEIJING BAILONG MAYUN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411026282.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

When identifying risk orders in online ride-hailing marketing activities, the accuracy rate is not high, the rule engine lacks variability and adaptability, and the new types of risk orders cannot be identified, and the maintenance cost is high, which can easily lead to misjudgment and affect the driver. Receive rewards and user satisfaction.

Method used

The LightGBM model is used to identify risk orders, expand data volume through feature engineering and data enhancement, build a risk order identification model, and use cross-verification to optimize the model hyperparameters to improve identification accuracy and flexibility and reduce maintenance costs.

Benefits of technology

It improves the recognition accuracy of the risk control algorithm, reduces the customer complaints of drivers, enhances the ability to identify new types of risk orders, reduces maintenance costs, and improves the flexibility and adaptability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118967193A_ABST
    Figure CN118967193A_ABST
Patent Text Reader

Abstract

The invention relates to the field of data processing and intelligent transportation, and discloses an online car-hailing marketing activity risk order identification method and device, which are used for solving the problem that when a risk order appears, the accuracy of model identification of the risk order is not high, and the method comprises the following steps: obtaining order data related to a marketing activity as a data set, carrying out feature engineering, and obtaining the risk order of the marketing activity; the method comprises the following steps: constructing order features, selecting a batch of orders from a data set for manual labeling, training a LightGBM model to obtain a final risk order identification model, predicting the risk probability of the orders by using the final risk order identification model, recalling the orders of which the predicted values are higher than a threshold value, and performing marketing risk control on the orders according to the past recall condition of a driver. And the prize issuing condition of the marketing activity corresponding to the risk order is recalculated without considering the activity data statistics of the marketing activity, so that the accuracy of identifying the risk order by the model is effectively improved, and the misjudgment rate of the order is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of data processing and intelligent transportation, and more specifically to a method and device for identifying risky orders in online car-hailing marketing activities. Background Art

[0002] Identification of risky online ride-hailing orders refers to identifying orders that may have safety hazards, service quality issues or economic risks by analyzing and mining the order data on the online ride-hailing platform.

[0003] In the existing technology, risky orders are mainly identified by models and rule engines. The single model for order identification mainly uses the surface features of the order, which are substituted into the model to predict the risk of the order. The rule engine is a system composed of a series of strategy rules, which identify the target risk orders by set rules. For example, if the number of driver-passenger matches for an order is higher than 10 times, it is identified as a risky order. In the current technology, the identification of risky orders in marketing activities is mainly based on the above real-time identification results of risky orders, so as to determine whether to issue marketing activity rewards to drivers participating in the activities.

[0004] Since it is real-time identification and the number of features is not large enough, the accuracy of the model in identifying risky orders is not high. The rule engine involves a large number of rules, which are generally fixed threshold rules, so there is no variability and adaptability. It can only detect risky orders with cheating methods within the current risk control personnel's field of vision / cognition, and there is no identification capability for new types of risky orders. At the same time, the cost of maintaining the rule engine is very high. Risk control results with poor accuracy can easily lead to misjudgment of orders, which in turn prevents drivers from obtaining activity rewards and causes customer complaints.

[0005] In view of the above problems, the present invention proposes a solution. Summary of the invention

[0006] In order to overcome the above-mentioned defects of the prior art, the present invention provides a method and device for identifying risky orders in online car-hailing marketing activities to solve the problems existing in the above-mentioned background technology.

[0007] To achieve the above object, the present invention provides the following technical solutions:

[0008] A method for identifying risky orders in online car-hailing marketing activities comprises the following steps:

[0009] Obtain all order data involving marketing activities within a period of time as a data set, perform feature engineering, construct order features, select a batch of orders from the data set for manual labeling, determine whether the order is a risky order, and perform data enhancement on the labeling results to expand the data volume. Take risky orders as positive samples and normal orders as negative samples, train the LightGBM model with the original ratio, and obtain the final risky order recognition model;

[0010] Perform feature engineering on the orders involved in the marketing activities one day after the activity is completed every day, use the final risk order identification model to predict the risk probability of the orders, and recall the orders with predicted values ​​higher than the threshold. If the driver of the recalled order has also had recalled orders in the past, and the number of recalled orders is higher than the threshold, then the current recalled order is the target risk order;

[0011] Risky orders will be subject to marketing risk control and will not be included in the activity data statistics of the marketing activities. The award status of the marketing activities corresponding to the risky orders will be recalculated.

[0012] Preferably, the step of performing data enhancement on the annotation results to expand the data volume is:

[0013] Random flipping is used to enhance the data of the annotation results and expand the data volume. The random flipping includes horizontal flipping and vertical flipping, and the calculation formula is FZ=F 原 ×(-1), where FZ represents the flipped feature, F 原 Represented as original features;

[0014] Apply data augmentation methods to each labeled order sample to generate new samples;

[0015] The generated new samples are added to the original dataset to form an expanded dataset.

[0016] Preferably, the steps of taking risky orders as positive samples and normal orders as negative samples and training the LightGBM model at the original ratio are as follows:

[0017] Select risky orders as positive samples and normal orders as negative samples from the dataset to construct a training dataset. Ensure that the dataset contains enough features to describe the orders and that each sample has a label indicating whether it is a risky order.

[0018] The cross-validation method is used to divide the data set into a training set and a test set for training the model and evaluating the model performance;

[0019] Use the LightGBM library to define the LightGBM model by setting the model's hyperparameters, including the learning rate, tree depth, and the minimum number of samples for leaf nodes;

[0020] Use the training set to train the LightGBM model. During the training process, the model is optimized based on the relationship between features and labels to minimize the loss function.

[0021] Use the test set to evaluate the performance of the trained model through the model's accuracy, precision, recall, and F1 value;

[0022] According to the performance results of the model, the hyperparameters of the model, including the learning rate, the depth of the tree, and the minimum number of samples of the leaf nodes, are adjusted to further optimize the model performance.

[0023] Preferably, the step of dividing the data set into a training set and a test set by using a cross-validation method is:

[0024] Use k-fold cross validation method to divide the original data set into k subsets of equal size;

[0025] For each cross-validation iteration, one of the subsets is used as the test set, and the other k-1 subsets are combined into the training set, and the cycle is repeated until each subset serves as a test set;

[0026] For each set of training and test sets, use the training set to train the model, and then use the test set to evaluate the model performance;

[0027] For each cross-validation iteration, the mean of the selected performance metrics was calculated to assess the overall performance of the model;

[0028] Select the best model or parameter configuration based on the average value of performance indicators.

[0029] Preferably, the steps of training the LightGBM model using the training set are:

[0030] Prepare training set data, wherein the training set data includes features and corresponding labels;

[0031] Import the LightGBM library in the Python environment, use the classifier or regressor model in the LightGBM library, and select the model according to the task type;

[0032] Use the training set data to call the model's training function, train the model, and optimize it based on the relationship between features and labels.

[0033] Preferably, the step of using the test set to evaluate the performance of the trained model through the accuracy, precision, recall and F1 value of the model is:

[0034] Prepare the test set data, including features and corresponding labels;

[0035] Use the trained model to predict the features of the test set and obtain the prediction results of the model for the test set. The accuracy of the model is calculated by the prediction results of positive and negative samples. The calculation formula is: Among them, AY represents the accuracy of the model, TP represents the number of positive samples correctly predicted as positive by the model, TN represents the number of negative samples correctly predicted as negative by the model, FP represents the number of negative samples incorrectly predicted as positive by the model, and FN represents the number of positive samples incorrectly predicted as negative by the model;

[0036] The accuracy of the model is calculated by the prediction results of positive and negative samples. The calculation formula is: PS is the precision of the model, TP is the number of positive samples correctly predicted as positive by the model, and FP is the number of negative samples incorrectly predicted as positive by the model.

[0037] The recall rate of the model is calculated by the prediction results of positive and negative samples. The calculation formula is: Where RL represents the recall rate of the model, TP represents the number of positive samples correctly predicted by the model as positive classes, and FN represents the number of positive samples incorrectly predicted by the model as negative classes;

[0038] The F1 value of the model is calculated by the precision and recall rate of the model. The calculation formula is: Where F1 represents the F1 value of the model, PS represents the precision of the model, and RL represents the recall rate of the model;

[0039] According to the model accuracy, precision, recall and F1 value obtained from the test set, the model performance index is obtained through comprehensive evaluation. The calculation formula is MP=a1×AY+a2×PS+a3×PL+a4×F1, where MP represents the model performance index, AY represents the accuracy of the model, PS represents the precision of the model, RL represents the recall of the model, F1 represents the F1 value of the model, and a1, a2, a3, and a4 represent the weight coefficients of the accuracy of the model, the precision of the model, the recall of the model, and the F1 value of the model;

[0040] The model performance index is compared with the preset threshold. If the model performance index is greater than the preset threshold, the model performance is judged to be high and can be used. If the model performance index is less than the preset threshold, the model performance is judged to be low and cannot be used. In this case, the hyperparameters of the LightGBM model are adjusted and the model performance evaluation is continued until the model performance index is greater than the preset threshold.

[0041] Preferably, a device for identifying risky orders in online car-hailing marketing activities comprises:

[0042] The data collection module is used to collect all order data related to marketing activities on the online car-hailing platform within a certain period of time, including order information, passenger information, driver information and travel trajectory;

[0043] A feature extraction module is used to extract features from order data, including order context features, passenger statistics, driver statistics, supply and demand features at the time of the order, and features of activities involved in the order;

[0044] Build a model module, use LightGBM to build a risky order identification model, mark the orders as positive samples and negative samples, and train the model with the original ratio;

[0045] Model training module, used to train the model using the labeled order data set and divide the data set using the cross-validation method;

[0046] The model evaluation module is used to evaluate the performance of the model using the test set and determine the reliability of the model;

[0047] The deployment module is used to deploy the trained model to the system.

[0048] Technical effects and advantages of the present invention:

[0049] The present invention adjusts the recognition order of the risk control system for marketing activities from real-time risk control to offline post-risk control. It can increase the number of features and data that can be applied by the risk control algorithm without affecting the awarding time of the marketing activities, improve the recognition accuracy of the risk control algorithm, and reduce drivers' customer complaints.

[0050] The present invention fully characterizes the performance of each stage of the order. In the training of the machine learning model, it is possible to learn the relationship between the characteristics of normal orders hidden in the data, which are difficult to summarize manually, and the relationship between the characteristics of risky orders. Compared with a series of rules in the rule engine, the current model's recognition is more flexible and essential, and the maintenance cost is greatly reduced.

[0051] This solution starts with the performance of orders in the event, and analyzes the top drivers, top event rewards, and top orders in the event as features. It can allow the model to learn the relationship between the event and driver cheating from the perspective of the event, making the prediction results more consistent with cheating orders for marketing activities. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is the overall flow chart of the present invention.

[0053] Figure 2 This is the activity risk control process in this technical solution. DETAILED DESCRIPTION

[0054] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. In addition, the forms of the various structures recorded in the following embodiments are merely illustrative. The method and device for identifying risky orders in online car-hailing marketing activities involved in the present invention are not limited to the various structures recorded in the following embodiments. All other implementations obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present invention.

[0055] The present invention provides a method for identifying risky orders in online car-hailing marketing activities, such as Figure 2 As shown, the following steps are included:

[0056] All order data involving marketing activities within 180 days are obtained as a data set, feature engineering is performed, and order features are constructed. A batch of orders (about 20,000) are selected from the data set for manual labeling to determine whether the orders are risky orders. The labeled results are then enhanced to expand the data volume. Risky orders are used as positive samples and normal orders as negative samples. The Light GBM model is trained at the original ratio to obtain the final risky order identification model.

[0057] Every day, feature engineering is performed on the orders involved in the marketing activities one day after the activity is completed. The final risk order identification model is used to predict the risk probability of the orders. Orders with predicted values ​​higher than the threshold (set to 0.95 here) are recalled. If the driver of the recalled order also had recalled orders in the past, and the number of recalled orders is higher than the threshold (set to 5 here), the current recalled order is the target risk order, and the feature engineering is performed in an offline state;

[0058] Risky orders will be subject to marketing risk control and will not be included in the activity data statistics of the marketing activities. The award status of the marketing activities corresponding to the risky orders will be recalculated.

[0059] Identifying and controlling risky orders can reduce criminal behavior by lawbreakers, thereby ensuring the safety of passengers and drivers. Risky orders may affect service quality. For example, malicious passengers may threaten drivers, maliciously damage vehicles, etc., affecting the riding experience of other passengers. By identifying and controlling risky orders, service quality can be maintained and user satisfaction can be improved. Risky orders may lead to economic losses. By identifying and controlling risky orders, timely measures can be taken to reduce economic losses.

[0060] Feature engineering refers to the preprocessing, conversion and extraction of raw data in machine learning and data mining tasks based on the characteristics of the data and domain knowledge to extract more informative features and provide better input for the training of machine learning models. The purpose of feature engineering is to enable the model to better understand the data and learn useful patterns and laws from it, thereby improving the performance and generalization ability of the model. Good feature engineering can greatly affect the performance of the model, and is even more important than model selection and tuning.

[0061] The feature engineering includes feature selection, feature extraction, feature conversion, feature creation and feature combination.

[0062] In this embodiment, it should be specifically explained that the order features include extracting order context features, passenger statistical features, driver statistical features, supply and demand features at the time of the order, and features of activities involved in the order.

[0063] The order context features include the time when the order is placed, the estimated pick-up / drop-off time / distance of the order, the actual pick-up / drop-off time / distance of the order, the ratio of the estimated time / distance for the order to the actual time / distance, the current estimated travel fee / actual travel fee / actual surcharge of the order, the estimated average price per minute / average price per kilometer of the order, the city ID / tenant ID of the order, whether the day the order is placed is a working day, the time from order placement to response / the time from response to the driver's arrival at the starting point / the time from the driver's arrival to the passenger getting on the car / the time from the passenger arriving at the destination to the passenger paying, the number / time of driver-passenger calls in the order, the number of driver-passenger matches in the order, and the number of tenants selected by the passenger when the order is placed.

[0064] The statistical characteristics of the passenger include the probability of the passenger selecting this tenant in the past 7 days / 30 days, the proportion of orders in which the passenger took a taxi within 2km of the starting point of the current order in the past 7 days / 30 days, the proportion of orders in which the passenger got off the taxi within 2km of the destination of the current order in the past 7 days / 30 days, and the minimum, maximum and average prices of the passenger's taxi orders in the past 7 days / 30 days.

[0065] The driver's statistical characteristics include how many activity rewards the driver has obtained in the past 30 days and the driver's position in the past 30 days compared with other drivers in the same city and tenant (whether they are drivers who won awards at the same time).

[0066] The supply and demand characteristics of the order at the time include the number of main orders of passengers in the current city at the current time, the number of drivers who have listened to orders, and the supply and demand ratio of passengers to drivers.

[0067] The characteristics of the activity involved in the order include whether the order is the first / last / before awarding a prize for the activity, whether the activity involved in the order includes an award, the position of the award amount for the activity involved in the order within the award amount in the same activity, the average award amount for the activity involved in the order, the number and proportion of starting price orders in the activity involved in the order, and the interval time between the order and the previous order with the same design for the current activity.

[0068] Data augmentation refers to a series of transformations and processing of the original data to generate more and richer data samples, thereby expanding the size of the data set. Data augmentation of the annotation results means performing certain transformations and processing on the already annotated data samples to generate new data samples, thereby increasing the size of the original data set. The purpose of this is to improve the generalization ability of the machine learning model, increase the robustness of the model, and reduce the risk of overfitting.

[0069] In this embodiment, it should be specifically explained that the steps of performing data enhancement on the annotation results and expanding the data volume are as follows:

[0070] Determine the data enhancement method to be used. This depends on the characteristics of your data set, the problem requirements, and the available data enhancement techniques. Common data enhancement methods include random flipping, rotation, scaling, translation, and adding noise. This embodiment takes random flipping as an example. The random flipping includes horizontal flipping and vertical flipping. The calculation formula is FZ = F original × (-1), where FZ represents the flipped feature, and F 原 Represented as original features. For example, the departure and destination data of Order 1 are horizontally flipped. The original features are that the departure is A and the destination is B. After horizontal reversal, the departure is B and the destination is A.

[0071] Apply the selected data augmentation method to each labeled order sample to generate new samples. The same or different data augmentation methods can be applied multiple times as needed.

[0072] The generated new samples are added to the original dataset to form an expanded dataset.

[0073] Taking risky orders as positive samples helps the model to learn and identify risky behaviors more attentively and improves its ability to identify risky orders. In many actual scenarios, risky orders may only account for a small part of the total number of orders, resulting in an imbalance between positive and negative samples. Training the model at the original ratio can effectively alleviate this problem, ensuring that the model pays enough attention to both positive and negative samples during training, avoiding the model from being overly biased towards the majority category. Training the model at the original ratio can retain the original distribution characteristics of the data set, better reflect the actual business scenarios, and improve the generalization ability and practicality of the model.

[0074] When training the model, using risky orders and normal orders in their original proportions can enable the model to learn the characteristics and patterns of the two types of orders more comprehensively, thereby more accurately evaluating the performance of the model. Fully considering the characteristics and behavior patterns of risky orders when training the model can help the model identify risky orders more accurately, thereby improving prediction results and reducing misjudgment and missed detection rates.

[0075] In this embodiment, it should be specifically explained that the steps of taking risky orders as positive samples and normal orders as negative samples and training the LightGBM model at the original ratio are as follows:

[0076] Select risky orders as positive samples and normal orders as negative samples from the dataset to construct a training dataset. Ensure that the dataset contains enough features to describe the orders and that each sample has a label indicating whether it is a risky order (1 for a risky order and 0 for a normal order).

[0077] The cross-validation method is used to divide the data set into a training set and a test set for training the model and evaluating the model performance. The cross-validation is a commonly used model evaluation technique that can more accurately evaluate the performance and generalization ability of the model. In cross-validation, the original data set is divided into a training set and a test set, and then the model is trained on the training set, and the performance of the model is evaluated on the test set. The difference is that cross-validation will repeat this process multiple times, using different training sets and test sets each time, and finally combine the results of multiple evaluations to obtain the final evaluation result;

[0078] Use the LightGBM library to define a LightGBM classifier model. When defining the model, you can set the model's hyperparameters, such as learning rate, tree depth, minimum number of samples for leaf nodes, etc. The LightGBM is a framework for implementing the GBDT algorithm, which supports efficient parallel training, and has the advantages of faster training speed, lower memory consumption, better accuracy, support for distributed processing of massive data, etc. The LightGBM library provides interfaces for languages ​​such as Python and R, which can be easily used in various machine learning tasks. It supports a variety of tasks such as classification, regression, and sorting, and provides a wealth of hyperparameters for users to adjust to optimize the performance of the model;

[0079] Use the training set to train the LightGBM model. During the training process, the model is optimized based on the relationship between features and labels to minimize the loss function.

[0080] Use the test set to evaluate the performance of the trained model. Usually, indicators such as accuracy, precision, recall, and F1 value are used to evaluate the performance of the model.

[0081] According to the performance results of the model, adjust the model's hyperparameters, such as learning rate, tree depth, etc., to further optimize the model performance.

[0082] In this embodiment, it should be specifically explained that the steps of dividing the data set into a training set and a test set by using the cross-validation method are as follows:

[0083] Use k-fold cross validation to divide the original data set into k subsets of similar size. Usually, the value of k is 5 or 10, but it can also be adjusted according to the size and characteristics of the data set;

[0084] For each cross-validation iteration, one of the subsets is used as the test set, and the other k-1 subsets are combined into the training set. This cycle repeats until each subset serves as a test set once;

[0085] For each set of training and test sets, use the training set to train the model, and then use the test set to evaluate the model performance;

[0086] For each cross-validation iteration, calculate the average of the selected performance metrics (such as accuracy, precision, recall, F1 value, etc.) to evaluate the overall performance of the model;

[0087] Select the best model or parameter configuration based on the average value of performance indicators.

[0088] In this embodiment, it should be specifically explained that the steps of training the LightGBM model using the training set are:

[0089] Prepare training set data, wherein the training set data includes features and corresponding labels;

[0090] Import the LightGBM library in the Python environment to use the models and functions in it;

[0091] Use the classifier or regressor model in the LightGBM library and choose the appropriate model according to the task type;

[0092] Use the training set data to call the model's training function to train the model. During the training process, the model will be optimized based on the relationship between features and labels to minimize the loss function.

[0093] In this embodiment, it should be specifically explained that the steps of using the test set to evaluate the performance of the trained model are:

[0094] Prepare the test set data, including features and corresponding labels;

[0095] Use the trained model to predict the features of the test set and obtain the prediction results of the model for the test set. The accuracy of the model is calculated by the prediction results of positive and negative samples. The calculation formula is: Among them, AY represents the accuracy of the model, TP represents the number of positive samples correctly predicted as positive by the model, TN represents the number of negative samples correctly predicted as negative by the model, FP represents the number of negative samples incorrectly predicted as positive by the model, and FN represents the number of positive samples incorrectly predicted as negative by the model;

[0096] The accuracy of the model is calculated by the prediction results of positive and negative samples. The calculation formula is: PS is the precision of the model, TP is the number of positive samples correctly predicted as positive by the model, and FP is the number of negative samples incorrectly predicted as positive by the model.

[0097] The recall rate of the model is calculated by the prediction results of positive and negative samples. The calculation formula is: Where RL represents the recall rate of the model, TP represents the number of positive samples correctly predicted by the model as positive classes, and FN represents the number of positive samples incorrectly predicted by the model as negative classes;

[0098] The F1 value of the model is calculated by the precision and recall rate of the model. The calculation formula is: Among them, F1 represents the F1 value of the model, PS represents the precision of the model, and RL represents the recall rate of the model. The F1 value is an evaluation indicator that comprehensively considers the precision rate and the recall rate, and is often used to measure the performance of the binary classification model. It is the harmonic mean of the precision rate and the recall rate, and aims to balance the accuracy and recall rate of the model;

[0099] According to the model accuracy, precision, recall and F1 value obtained from the test set, the model performance index is obtained through comprehensive evaluation. The calculation formula is MP = a1 × AY + a2 × PS + a3 × PL + a4 × F1, where MP represents the model performance index, AY represents the accuracy of the model, and the accuracy is the ratio of the number of samples correctly predicted by the model to the total number of samples. It measures the overall prediction correctness of the model. The increase in accuracy represents the improvement of the overall prediction performance of the model. PS represents the precision of the model. The precision is the proportion of samples predicted by the model as positive to those actually positive. It measures the accuracy of the model in samples predicted as positive. A high precision means that the model makes fewer mistakes in samples predicted as positive. RL represents the recall of the model. The recall is the proportion of samples successfully predicted as positive by the model among those actually positive. It measures the model's ability to discover positive samples. A high recall rate indicates that the model has discovered most of the positive samples. F1 is the model's F1 value, which takes into account both precision and recall, and is the harmonic mean of precision and recall. It also takes into account the model's accuracy and recall rate. A high F1 value indicates that the model has good accuracy in predicting positive samples and good ability to discover positive samples. a1, a2, a3, and a4 are weight coefficients for the model's accuracy, the model's precision, the model's recall, and the model's F1 value. This embodiment does not perform specific calculations on the specific values ​​of a1, a2, a3, and a4.

[0100] The model performance index is compared with the preset threshold. If the model performance index is greater than the preset threshold, the model performance is good and can be used. If the model performance index is less than the preset threshold, the model performance is low and cannot be used. In this case, the hyperparameters of the LightGBM model, such as the learning rate, tree depth, minimum number of samples of leaf nodes, etc., are adjusted to find a better model configuration, and the model performance evaluation is continued until the model performance index is greater than the preset threshold.

[0101] In this embodiment, it is necessary to specifically explain a device for identifying risky orders of online car-hailing marketing activities, the device comprising:

[0102] The data collection module is used to collect all order data related to marketing activities on the online car-hailing platform within a certain period of time, including order information, passenger information, driver information and travel trajectory;

[0103] A feature extraction module is used to extract features from order data, including order context features, passenger statistics, driver statistics, supply and demand features at the time of the order, and features of activities involved in the order;

[0104] Build a model module, use LightGBM to build a risky order identification model, mark the orders as positive samples and negative samples, and train the model with the original ratio;

[0105] Model training module, used to train the model using the labeled order data set and divide the data set using the cross-validation method;

[0106] The model evaluation module is used to evaluate the performance of the model using the test set and determine the reliability of the model;

[0107] The deployment module is used to deploy the trained model to the system.

[0108] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

[0109] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for identifying risky orders in online car-hailing marketing activities. It is characterized in that The following steps are involved: Obtain all order data involving marketing activities within a period of time as a data set, perform feature engineering, construct order features, select a batch of orders from the data set for manual labeling, determine whether the order is a risky order, and perform data enhancement on the labeling results to expand the data volume. Take risky orders as positive samples and normal orders as negative samples, train the LightGBM model with the original ratio, and obtain the final risky order recognition model; Perform feature engineering on the orders involved in the marketing activities one day after the activity is completed every day, use the final risk order identification model to predict the risk probability of the orders, and recall the orders with predicted values ​​higher than the threshold. If the driver of the recalled order has also had recalled orders in the past, and the number of recalled orders is higher than the threshold, then the current recalled order is the target risk order; Risky orders will be subject to marketing risk control and will not be included in the activity data statistics of the marketing activities. The award status of the marketing activities corresponding to the risky orders will be recalculated.

2. A method for identifying risky orders in online car-hailing marketing activities according to claim 1, Features: The steps of performing data enhancement on the annotation results and expanding the data volume are as follows: Random flipping is used to enhance the data of the annotation results and expand the data volume. The random flipping includes horizontal flipping and vertical flipping, and the calculation formula is FZ=F 原 ×(-1), where FZ represents the flipped feature, F 原 Represented as raw features; Apply data augmentation methods to each labeled order sample to generate new samples; The generated new samples are added to the original dataset to form an expanded dataset.

3. A method for identifying risky orders in online car-hailing marketing activities according to claim 1, Features: The steps of taking risky orders as positive samples and normal orders as negative samples and training the LightGBM model at the original ratio are as follows: Select risky orders as positive samples and normal orders as negative samples from the dataset to construct a training dataset. Ensure that the dataset contains enough features to describe the orders and that each sample has a label indicating whether it is a risky order. The cross-validation method is used to divide the data set into a training set and a test set for training the model and evaluating the model performance; Use the LightGBM library to define the LightGBM model by setting the model's hyperparameters, including the learning rate, the depth of the tree, and the minimum number of samples for leaf nodes; Use the training set to train the LightGBM model. During the training process, the model is optimized based on the relationship between features and labels to minimize the loss function. Use the test set to evaluate the performance of the trained model through the model's accuracy, precision, recall, and F1 value; According to the performance results of the model, the hyperparameters of the model, including the learning rate, the depth of the tree, and the minimum number of samples of the leaf nodes, are adjusted to further optimize the model performance.

4. A method for identifying risky orders in online car-hailing marketing activities according to claim 3, Features: The steps of dividing the data set into a training set and a test set by using the cross-validation method are as follows: Use k-fold cross validation method to divide the original data set into k subsets of equal size; For each cross-validation iteration, one of the subsets is used as the test set, and the other k-1 subsets are combined into the training set, and the cycle is repeated until each subset serves as a test set; For each set of training and test sets, use the training set to train the model, and then use the test set to evaluate the model performance; For each cross-validation iteration, the mean of the selected performance metrics was calculated to assess the overall performance of the model; Select the best model or parameter configuration based on the average value of performance indicators.

5. A method for identifying risky orders in online car-hailing marketing activities according to claim 3, Features: The steps of using the training set to train the LightGBM model are: Prepare training set data, wherein the training set data includes features and corresponding labels; Import the LightGBM library in the Python environment, use the classifier or regressor model in the LightGBM library, and select the model according to the task type; Use the training set data to call the model's training function, train the model, and optimize it based on the relationship between features and labels.

6. A method for identifying risky orders in online car-hailing marketing activities according to claim 5, Features: The steps of using the test set to evaluate the performance of the trained model through the accuracy, precision, recall and F1 value of the model are as follows: Prepare the test set data, including features and corresponding labels; Use the trained model to predict the features of the test set and obtain the prediction results of the model for the test set. The accuracy of the model is calculated by the prediction results of positive and negative samples. The calculation formula is: Among them, AY represents the accuracy of the model, TP represents the number of positive samples correctly predicted as positive by the model, TN represents the number of negative samples correctly predicted as negative by the model, FP represents the number of negative samples incorrectly predicted as positive by the model, and FN represents the number of positive samples incorrectly predicted as negative by the model; The accuracy of the model is calculated by the prediction results of positive and negative samples. The calculation formula is: PS is the precision of the model, TP is the number of positive samples correctly predicted as positive by the model, and FP is the number of negative samples incorrectly predicted as positive by the model. The recall rate of the model is calculated by the prediction results of positive and negative samples. The calculation formula is: Where RL represents the recall rate of the model, TP represents the number of positive samples correctly predicted by the model as positive classes, and FN represents the number of positive samples incorrectly predicted by the model as negative classes; The F1 value of the model is calculated by the precision and recall rate of the model. The calculation formula is: Where F1 represents the F1 value of the model, PS represents the precision of the model, and RL represents the recall rate of the model; According to the model accuracy, precision, recall and F1 value obtained from the test set, the model performance index is obtained through comprehensive evaluation. The calculation formula is MP=a1×AY+a2×PS+a3×PL+a4×F1, where MP represents the model performance index, AY represents the accuracy of the model, PS represents the precision of the model, RL represents the recall of the model, F1 represents the F1 value of the model, and a1, a2, a3, and a4 represent the weight coefficients of the accuracy of the model, the precision of the model, the recall of the model, and the F1 value of the model; The model performance index is compared with the preset threshold. If the model performance index is greater than the preset threshold, the model performance is judged to be high and can be used. If the model performance index is less than the preset threshold, the model performance is judged to be low and cannot be used. In this case, the hyperparameters of the LightGBM model are adjusted and the model performance evaluation is continued until the model performance index is greater than the preset threshold.

7. A device for identifying risky orders in online car-hailing marketing activities, It is characterized in that The device comprises: The data collection module is used to collect all order data related to marketing activities on the online car-hailing platform within a certain period of time, including order information, passenger information, driver information and travel trajectory; A feature extraction module is used to extract features from order data, including order context features, passenger statistics, driver statistics, supply and demand features at the time of the order, and features of activities involved in the order; Build a model module, use LightGBM to build a risky order identification model, mark the orders as positive samples and negative samples, and train the model with the original ratio; The model training module is used to train the model using the labeled order data set and divide the data set using the cross-validation method; The model evaluation module is used to evaluate the performance of the model using the test set and determine the reliability of the model; The deployment module is used to deploy the trained model to the system.