Network freight oil product deduction information supervision method and system
By combining Bayesian inference and Markov chain Monte Carlo with a random forest model, the fuel consumption detection threshold is dynamically adjusted, which solves the problem of high false alarm and omission rate in the existing technology of fuel consumption monitoring systems, and achieves accurate identification and assessment of fuel consumption. , enhancing the sensitivity and reliability of fuel consumption supervision.
Patent Information
- Application Number
- CN202410832015.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-26
AI Technical Summary
The existing fuel consumption monitoring system relies on static algorithms and fixed thresholds, which cannot effectively respond to complex and changing driving conditions and environmental factors, resulting in high false alarm and omission rates. It cannot accurately identify abnormal fuel consumption, affecting tax rationality determination and oil product offsets. buckle.
Bayesian inference and Markov chain Monte Carlo methods are used to quantify feature contributions, combined with the random forest model to evaluate data purity, identify driving condition categories through clustering algorithms, and dynamically adjust fuel consumption anomaly detection thresholds to improve model explanation power and identification accuracy. sex.
It achieves accurate identification and assessment of fuel consumption, enhances the sensitivity and reliability of fuel consumption detection, provides efficient and accurate fuel consumption supervision decision support, and adapts to waybill fuel verification under different conditions.
Smart Images

Figure CN118378972B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle real fuel consumption supervision, and more specifically, to a method and system for supervising online freight fuel deduction information. Background Art
[0002] With the rapid development of the logistics and transportation industry, fuel consumption has become an important part of corporate operating costs. In order to improve the efficiency and transparency of fuel use, various types of fuel supervision platforms have emerged. Through big data algorithms, the amount of fuel allocated on the waybill is analyzed to verify the authenticity and rationality of the actual fuel consumption of the vehicle. Accurate monitoring of fuel consumption can not only help companies optimize fuel management and reduce operating costs, but also ensure the rationality of input invoice deductions from a tax perspective and prevent tax risks. It is particularly important to establish an efficient, accurate and dynamically adjustable fuel consumption anomaly detection system.
[0003] Existing fuel consumption monitoring systems mostly rely on static algorithms and fixed thresholds, which cannot fully cope with complex and changeable driving conditions and environmental factors. They often ignore the dynamic changes of data features and the degradation of model explanatory power, resulting in high false alarm and missed alarm rates in practical applications. The lack of accurate identification and evaluation capabilities of abnormal fuel consumption makes it impossible to effectively determine the rationality of the deduction of corporate oil input invoices from a tax perspective, which poses challenges to companies and tax supervision. There is an urgent need for an innovative method that can dynamically adjust fuel consumption detection standards, comprehensively consider the impact of multiple features, and provide high-reliability decision support.
[0004] In order to solve the above problems, a technical solution is now provided. Summary of the invention
[0005] In order to overcome the above-mentioned defects of the prior art, the embodiment of the present invention provides a method and system for supervising information on oil product deduction for online freight transport, which uses a big data algorithm to analyze the historical operation data of the vehicle, combines Bayesian inference and Markov chain Monte Carlo method to quantify the features, and evaluates the contribution of the features to the data purity through a random forest model, screens out important features that have a significant impact on fuel consumption, inputs them into the clustering algorithm to train the model, determines the optimal number of clusters and divides the driving conditions into categories. In real-time data analysis, the stability and explanatory power of the model are evaluated by cluster label distribution and performance indicators, and the explanatory power degradation coefficient is calculated. On this basis, the threshold range of fuel consumption anomaly detection is dynamically adjusted, so as to accurately identify and evaluate the abnormal fuel consumption in the current time period. It can not only verify the authenticity and rationality of the actual fuel consumption of the vehicle, but also conveniently determine the rationality of the enterprise using the oil product input invoice for deduction from a tax perspective, ensuring that the oil product supervision platform can provide efficient and accurate fuel consumption supervision solutions under different conditions. This further enhances the sensitivity and reliability of fuel consumption detection, makes it suitable for fuel consumption amount verification based on waybill allocation, and provides reliable decision support for enterprises and tax authorities to solve the problems raised in the above-mentioned background technology.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] S1, collect historical vehicle operation data, sample the posterior distribution of regression coefficients through Bayesian inference combined with Markov Chain Monte Carlo, quantify the contribution and uncertainty of features to fuel consumption, and evaluate the contribution of features to data purity improvement through the Gini gain of each tree at the node splitting, and comprehensively extract and screen out important features that have a significant impact on fuel consumption;
[0008] S2, inputting the filtered important feature data into the clustering algorithm to perform model training, and dividing different driving condition categories according to the optimal number of clusters;
[0009] S3, extract the data corresponding to the important features in the current time period, input them into the trained clustering model, obtain clustering labels, analyze the explanatory power of the existing clustering model for the current data, evaluate the stability and consistency of the model through clustering label distribution analysis and clustering performance index calculation, and obtain the explanatory power degradation coefficient to judge the explanatory power of the clustering model in the current time period;
[0010] S4, when the interpretation capability meets the standard, based on the labels obtained in step S3, the proportion of data points exceeding the abnormal score threshold in the current time period is counted, and the abnormal fuel consumption in the current time period is comprehensively evaluated;
[0011] S5, using the explanatory power degradation coefficient to adjust the threshold range of fuel consumption anomaly detection, and dynamically adjust the evaluation standard of fuel consumption anomaly in the current time period.
[0012] In a preferred embodiment, the contribution of features to improving data purity is evaluated by the Gini gain of each tree at the time of node splitting. The specific process is as follows:
[0013] S1-1, use the training data to train the random forest model. The random forest consists of multiple decision trees, each of which is generated by random sampling with replacement from the training data, using a subset of features for split selection;
[0014] S1-2, in the process of building each tree, the node is split by selecting the optimal feature to maximize the Gini gain;
[0015] The Gini impurity of a node is calculated by calculating the sum of squares of the proportions of samples of different categories in the node, and then expressed as 1 minus the sum of squares;
[0016] Gini gain represents the difference in Gini impurity before and after the node split. Specifically, it is the weighted average of the Gini impurity of the parent node minus the Gini impurity of the left and right child nodes after the split. The weight is the proportion of the number of samples of each child node to the total number of samples of the parent node.
[0017] S1-3, in each tree, calculate the Gini gain of each feature when the node is split, and add it to the corresponding feature to indicate the importance contribution of the feature in this tree;
[0018] For the entire random forest, the Gini gain of each feature in all trees is accumulated to calculate the importance contribution of the feature in the entire random forest, which is marked as the excellence index.
[0019] In a preferred embodiment, the posterior distribution of the regression coefficient is sampled by combining Bayesian inference with the Markov chain Monte Carlo method to quantify the contribution and uncertainty of the feature to fuel consumption. The specific calculation process is as follows:
[0020] S11-1, the relationship between fuel consumption and feature matrix is expressed as a linear regression model, where fuel consumption is a linear combination of features combined with a random error term; the regression coefficients and error terms are assumed to follow a multivariate normal distribution and an inverse gamma distribution, respectively;
[0021] S11-2, set the prior distribution of the regression coefficient and the error term. The prior distribution of the regression coefficient is a multivariate normal distribution with a mean of zero, and the covariance matrix is the regularization parameter multiplied by the unit matrix; the prior distribution of the error term is an inverse gamma distribution, and the shape parameter and scale parameter are constants;
[0022] S11-3, sample the regression coefficients and error terms from the posterior distribution by Gibbs sampling:
[0023] a1, sets the initial values of the regression coefficient and error term;
[0024] a2, given the current error term, sample the regression coefficients from the conditional posterior distribution; calculate the mean and covariance matrix of the regression coefficients, the mean is the transpose of the feature matrix multiplied by the feature matrix, plus the regularization parameter multiplied by the inverse matrix of the identity matrix, multiplied by the transpose of the feature matrix and then multiplied by the fuel consumption vector; the covariance matrix is the transpose of the feature matrix multiplied by the feature matrix, plus the regularization parameter multiplied by the inverse matrix of the identity matrix, multiplied by the variance of the current error term;
[0025] a3, given the current regression coefficient, sample the error term from the conditional posterior distribution; the shape parameter of the error term is the prior shape parameter plus half of the number of data points, and the scale parameter is the prior scale parameter plus half of the sum of the squares of the current fuel consumption minus the feature matrix multiplied by the regression coefficient;
[0026] a4, repeat the steps of sampling regression coefficients and error terms until the sampling results converge and a stable sample distribution of the regression coefficients is obtained;
[0027] S11-4, obtain the sample distribution of each feature regression coefficient through Markov chain Monte Carlo sampling;
[0028] S11-5, calculate the quantitative contribution and uncertainty of each feature:
[0029] Calculate the mean of each feature regression coefficient sample to represent the average contribution of the feature;
[0030] Calculate the standard deviation of each feature regression coefficient sample to represent the uncertainty of the feature contribution;
[0031] The absolute value of the mean is divided by the standard deviation to obtain the distribution contribution weight, which represents the relative importance of the feature.
[0032] In a preferred embodiment, the excellence index and the distribution contribution weight are combined to extract and screen out important features that have a significant impact on fuel consumption, and obtain a fusion superiority coefficient, which is specifically:
[0033] Normalize the excellence index and distribution contribution weight of each feature;
[0034] The normalized excellence index and distribution contribution weight are weighted averaged by the preset weight coefficient to obtain the fusion superiority coefficient of each feature;
[0035] The fusion superiority coefficients of all features are sorted from large to small, and the features whose fusion superiority coefficients are greater than the screening threshold are selected as important features that have a significant impact on fuel consumption, and are marked as important features.
[0036] In a preferred embodiment, step S2 includes the following contents:
[0037] S2-1, standardize all important feature data;
[0038] S2-2, by comparing the silhouette coefficients corresponding to different numbers of clusters, the number of clusters with the largest silhouette coefficient is taken as the optimal number of clusters;
[0039] S2-3, clustering by Gaussian mixture model;
[0040] S2-4, use the expectation maximization algorithm to train the Gaussian mixture model:
[0041] b1, initialize cluster centers and covariance matrices;
[0042] b2, in the expectation step, calculate the posterior probability that each data point belongs to each Gaussian distribution;
[0043] b3, in the maximization step, update the model parameters, including mean, covariance and weight;
[0044] b4, by repeatedly iterating the expectation step and the maximization step until the model parameters converge, a stable clustering result is obtained;
[0045] S2-5, divide different driving condition categories.
[0046] In a preferred embodiment, step S3 includes the following contents:
[0047] S3-1, extracting data corresponding to important features from the vehicle operation data in the current time period, inputting the extracted data into the trained clustering model, and obtaining a clustering label for each data point;
[0048] S3-2, counting the number of data points of each cluster label in the current time period, calculating the distribution ratio of each label, and obtaining the distribution ratio of each label by comparing the number of data points of each label in the current time period with the total number of data points;
[0049] S3-3, by comparing the average distance of a data point to other data points in its cluster with the average distance to the nearest cluster, calculate the silhouette coefficient in the current time period, and by comparing the distribution ratio of each label in the current time period with the distribution ratio of the same label in the historical data, calculate the sum of the label distribution changes to obtain cluster consistency;
[0050] S3-4, combining the silhouette coefficient and cluster consistency index in the current time period, and calculating the explanatory power degradation coefficient in a weighted manner;
[0051] S3-5, compare the explanatory power degradation coefficient and the explanatory power threshold interval, and separate three situations to represent the three states of the clustering model's explanatory power; the specific situations are as follows:
[0052] When the explanatory power degradation coefficient is less than the lower threshold, a signal of explanatory power advantage is generated;
[0053] When the explanatory power degradation coefficient is between the lower threshold and the upper threshold, an explanatory power fuzzy signal is generated;
[0054] When the explanatory power degradation coefficient is greater than the upper threshold, an explanatory power reduction signal is generated.
[0055] In a preferred embodiment, step S4 includes the following contents:
[0056] S4-1, if no explanatory power decline signal is generated, the Mahalanobis distance is used to calculate the distance between the data point and the center of the cluster to which it belongs, and the anomaly score of each data point is obtained;
[0057] S4-2, by comparing the abnormal score of each data point with the abnormal threshold, counting the number of data points greater than the abnormal threshold, and obtaining the ratio of abnormal data points to the total data points, i.e., the abnormal data point ratio;
[0058] S4-3: If the proportion of abnormal data points is greater than the fuel consumption abnormality detection threshold, an early warning reminder is issued.
[0059] In a preferred embodiment, step S5 includes the following contents:
[0060] If the explanatory power fuzzy signal obtained in step S3 is a signal, the initial fuel consumption abnormality detection threshold is dynamically adjusted according to the explanatory power degradation coefficient; the adjusted abnormality detection threshold is obtained to replace the initial fuel consumption abnormality detection threshold.
[0061] The online freight oil product deduction information supervision system includes: historical data quantification module, clustering condition division module, real-time data analysis module, abnormal score statistics module and judgment condition adjustment module;
[0062] Historical data quantification module: collects historical operation data of vehicles, samples the posterior distribution of regression coefficients through Bayesian inference combined with Markov chain Monte Carlo, quantifies the contribution and uncertainty of features to fuel consumption, and evaluates the contribution of features to data purity improvement through the Gini gain of each tree at the node splitting, comprehensively extracts and screens out important features that have a significant impact on fuel consumption, and sends the screened important features and their quantified contributions and uncertainties to the clustering condition partitioning module;
[0063] Clustering condition division module: inputs the filtered important feature data into the clustering algorithm to perform model training, divides different driving condition categories based on the optimal number of clusters, and sends the clustering model and its corresponding driving condition category labels to the real-time data analysis module;
[0064] Real-time data analysis module: extract the data corresponding to important features in the current time period, input them into the trained clustering model, obtain clustering labels, analyze the explanatory power of the existing clustering model for the current data, evaluate the stability and consistency of the model through clustering label distribution analysis and clustering performance index calculation, obtain the explanatory power degradation coefficient to judge the explanatory power of the clustering model in the current time period, and send the clustering label and explanatory power degradation coefficient of the current time period to the abnormal score statistics module;
[0065] Abnormal score statistics module: when the interpretation ability meets the standard, the proportion of data points exceeding the abnormal score threshold in the current time period is counted according to the cluster labels obtained by the real-time data analysis module, the abnormal fuel consumption in the current time period is comprehensively evaluated, and the proportion of abnormal fuel consumption data points in the current time period is sent to the judgment condition adjustment module;
[0066] Judgment condition adjustment module: Use the explanatory power degradation coefficient to adjust the threshold range of fuel consumption anomaly detection and dynamically identify fuel consumption anomalies in the current time period.
[0067] The technical effects and advantages of the network freight oil product deduction information supervision method and system of the present invention are as follows:
[0068] 1. The present invention can accurately identify important features that have a significant impact on fuel consumption through a systematic feature extraction and screening method. Specifically, the Gini gain in the random forest model is used to evaluate the contribution of features to the improvement of data purity, and the Bayesian inference and Markov chain Monte Carlo (MCMC) methods are combined to quantify the contribution and uncertainty of features to fuel consumption, forming two key indicators: excellence index and distribution contribution weight. By normalizing and weighted averaging these two indicators, the fusion superiority coefficient is calculated to comprehensively measure the importance of each feature. The fusion superiority coefficients are sorted from large to small, and the features that have a significant impact on fuel consumption are screened out, and the model is optimized accordingly. Not only does it improve the accuracy and explanatory power of the model, but it can also maintain a high classification effect in a complex data environment, ensuring the effectiveness and reliability of the selected features in practical applications, and helping to achieve more accurate fuel consumption prediction and optimization, thereby improving the performance and application value of the overall model.
[0069] 2. The present invention can more accurately identify abnormal fuel consumption by utilizing multiple steps such as important feature extraction, cluster analysis, model explanation power evaluation and dynamic threshold adjustment. Specifically, the historical data is first subjected to feature extraction and standardization processing, and different driving condition categories are identified through a clustering algorithm. The explanatory power degradation coefficient is then used to evaluate the explanatory power of the model in the current time period. Combined with the method of abnormal score and dynamic adjustment of threshold, the abnormal fuel consumption is comprehensively evaluated and detected in real time. By comprehensively considering the changes in data features and the dynamic adjustment of the model's explanatory power, the accuracy and flexibility of fuel consumption anomaly detection are ensured, and it can effectively respond to fuel consumption fluctuations in different environments and driving conditions, and improve the reliability and decision-making support capabilities of fuel consumption management and optimization. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 It is a flow chart of the method for supervising the information on oil product deduction for online freight transport according to the present invention;
[0071] Figure 2 It is a structural schematic diagram of the network freight oil product deduction information supervision system of the present invention. DETAILED DESCRIPTION
[0072] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0073] Example 1
[0074] Figure 1 The present invention provides a method for supervising information on oil product deductions for online freight transport, including:
[0075] S1, collect historical vehicle operation data, sample the posterior distribution of regression coefficients through Bayesian inference combined with Markov Chain Monte Carlo, quantify the contribution and uncertainty of features to fuel consumption, and evaluate the contribution of features to data purity improvement through the Gini gain of each tree at the node splitting, and comprehensively extract and screen out important features that have a significant impact on fuel consumption;
[0076] S2, inputting the filtered important feature data into the clustering algorithm to perform model training, and dividing different driving condition categories according to the optimal number of clusters;
[0077] S3, extract the data corresponding to the important features in the current time period, input them into the trained clustering model, obtain clustering labels, analyze the explanatory power of the existing clustering model for the current data, evaluate the stability and consistency of the model through clustering label distribution analysis and clustering performance index calculation, and obtain the explanatory power degradation coefficient to judge the explanatory power of the clustering model in the current time period;
[0078] S4, when the interpretation capability meets the standard, based on the labels obtained in step S3, the proportion of data points exceeding the abnormal score threshold in the current time period is counted, and the abnormal fuel consumption in the current time period is comprehensively evaluated;
[0079] S5, using the explanatory power degradation coefficient to adjust the threshold range of fuel consumption anomaly detection, and dynamically adjust the evaluation standard of fuel consumption anomaly in the current time period.
[0080] The posterior distribution of regression coefficients is sampled by combining Bayesian inference with Markov Chain Monte Carlo (MCMC) method, the contribution and uncertainty of features to fuel consumption are quantified, and the contribution of features to data purity improvement is evaluated by combining the Gini gain of each tree at the node split. The combination of these two methods can better comprehensively extract and screen out important features that have a significant impact on fuel consumption. The reason is that Bayesian inference and MCMC methods can provide accurate posterior distribution of regression coefficients, quantify the importance and uncertainty of features, and thus fully consider the intrinsic fluctuations and prior information of data in parameter estimation, while the Gini gain evaluation method of random forest effectively identifies features that have significant contributions in classification tasks through the construction and splitting process of multiple decision trees. The rationality of combining these two methods is that the former provides the robustness and accuracy of statistical inference, while the latter shows a strong feature screening ability in nonlinear and high-dimensional data. Through this combination, the advantages of the two methods can be fully utilized to achieve a multi-dimensional evaluation of feature importance, ensuring that the screened features can not only accurately explain the changes in fuel consumption, but also maintain a high classification effect in a complex data environment, thereby improving the overall performance and explanatory power of the model.
[0081] Step S1 includes the following contents:
[0082] Collect detailed historical operating data including vehicle speed, acceleration, road conditions, temperature, load weight, fuel consumption, etc.
[0083] Preprocess the collected data: handle missing values, outliers, and perform data standardization.
[0084] Extract important features that have a significant impact on fuel consumption from the original data, including but not limited to the following features: mean and variance of driving speed, mean and variance of acceleration, road condition type (represented by one-hot encoding), mean and variance of temperature, mean and variance of load weight, etc.;
[0085] The contribution of features to data purity improvement is evaluated by the Gini gain of each tree at the node split. The specific process is as follows:
[0086] The contribution of features to improving data purity is evaluated by the Gini gain of each tree at the node split. This can provide an analysis of the contribution of features to data purity because the Gini gain directly measures the degree of improvement in the purity of the data set after splitting using a certain feature. Specifically, the Gini impurity of a node indicates the degree of disorder of the proportion of samples of different categories in the node, while the Gini gain indicates the reduction in disorder after splitting by a certain feature. The rationality of using Gini gain as an evaluation criterion lies in that it can quantify the role of each feature in the decision tree node splitting process. The higher the value, the better the effect of the feature in classification, and the more effective it can be in separating different categories. Therefore, calculating the cumulative value of the Gini gain of each feature in all trees can comprehensively reflect the total contribution of the feature to improving data purity in the entire random forest model, which is crucial for feature selection and importance assessment because it can help identify the most discriminative features, thereby optimizing model performance and explanatory power.
[0087] S1-1, use the training data to train the random forest model. The random forest consists of multiple decision trees, each of which is generated by random sampling with replacement from the training data, using a subset of features for split selection.
[0088] S1-2, in the process of building each tree, the optimal feature is selected to split the node, with the goal of maximizing the Gini gain. Gini gain refers to the improvement of data purity before and after a node is split by a certain feature.
[0089] The Gini impurity of a node is calculated by calculating the sum of squares of the proportions of samples of different categories in the node, and then expressed as 1 minus the sum of squares.
[0090] Gini gain represents the difference in Gini impurity before and after the node split. Specifically, it is the Gini impurity of the parent node minus the weighted average of the Gini impurities of the left and right child nodes after the split. The weight is the ratio of the number of samples of each child node to the total number of samples of the parent node.
[0091] S1-3, in each tree, calculate the Gini gain of each feature when the node is split, and add it to the corresponding feature to indicate the importance contribution of the feature in this tree.
[0092] For the entire random forest, the Gini gain of each feature in all trees is accumulated to calculate the importance contribution of the feature in the entire random forest, which is marked as the excellence index.
[0093] The excellence index is used to represent and reflect the importance of each feature in the random forest model for fuel consumption prediction. The larger the value, the higher the importance of the feature in the model and the greater the impact on fuel consumption prediction; the smaller the value, the lower the importance of the feature in the model and the smaller the impact on fuel consumption prediction.
[0094] The posterior distribution of the regression coefficients is sampled by combining Bayesian inference with the Markov Chain Monte Carlo (MCMC) method. This can quantify the contribution and uncertainty of the features to fuel consumption because Bayesian inference can combine prior information and observed data to update the distribution of the regression coefficients through conditional probability, making the results more robust and reliable. The MCMC method can effectively sample the posterior distribution in the high-dimensional parameter space and obtain a large number of samples of the regression coefficients. These samples not only provide estimates of the contribution of the features to fuel consumption (mean), but also quantify the uncertainty of these estimates (standard deviation). This method can fully reflect the importance of each feature in the fuel consumption model and its range of variation, thereby providing a solid statistical basis for model evaluation and optimization. The rationality of this is that it can make full use of all the information of the data, consider uncertainty, and ensure the stability and convergence of the results through iterative sampling technology, so that the importance of features and model interpretation can be more accurate and reliable.
[0095] The posterior distribution of the regression coefficient is sampled by combining Bayesian inference with the Markov Chain Monte Carlo (MCMC) method to quantify the contribution and uncertainty of the features to fuel consumption. The specific calculation process is as follows:
[0096] S11-1, the relationship between fuel consumption and feature matrix is expressed as a linear regression model, where fuel consumption is a linear combination of features combined with random error terms. The regression coefficients and error terms are assumed to follow multivariate normal distribution and inverse gamma distribution, respectively;
[0097] S11-2, set the prior distribution of the regression coefficient and the error term. The prior distribution of the regression coefficient is a multivariate normal distribution with a mean of zero, and the covariance matrix is the regularization parameter multiplied by the unit matrix. The prior distribution of the error term is an inverse gamma distribution, and the shape parameter and scale parameter are constants;
[0098] S11-3, sample the regression coefficients and error terms from the posterior distribution by Gibbs sampling:
[0099] Gibbs Sampling is a Markov Chain Monte Carlo (MCMC) method for generating samples from a multidimensional probability distribution. By gradually fixing each variable and conditionally sampling the remaining variables, a Markov chain is constructed to eventually obtain samples of the target distribution.
[0100] a1, sets the initial values of the regression coefficient and error term;
[0101] a2, given the current error term, sample the regression coefficients from the conditional posterior distribution. Calculate the mean and covariance matrix of the regression coefficients. The mean is the transpose of the feature matrix multiplied by the feature matrix, plus the regularization parameter multiplied by the inverse matrix of the identity matrix, multiplied by the transpose of the feature matrix and then multiplied by the fuel consumption vector. The covariance matrix is the transpose of the feature matrix multiplied by the feature matrix, plus the regularization parameter multiplied by the inverse matrix of the identity matrix, multiplied by the variance of the current error term;
[0102] a3, given the current regression coefficient, sample the error term from the conditional posterior distribution. The shape parameter of the error term is the prior shape parameter plus half of the number of data points, and the scale parameter is the prior scale parameter plus half of the sum of the squares of the current fuel consumption minus the feature matrix multiplied by the regression coefficient;
[0103] a4, repeat the steps of sampling regression coefficients and error terms until the sampling results converge and a stable sample distribution of the regression coefficients is obtained.
[0104] Among them, the convergence judgment is achieved through Gelman-Rubin diagnosis, checking autocorrelation and evaluating the effective sample size. The specific processing steps are: initialize multiple chains and use different initial values for independent Markov chain sampling; run the sampling algorithm and perform a certain number of iterations to eliminate the influence of the initial value; calculate the R-hat value, autocorrelation and effective sample size of each chain after the burn-in period; if the R-hat value of all regression coefficients is less than 1.1, the autocorrelation is close to zero within a reasonable range, and the effective sample size is large enough, the sampling result is considered to have converged; if the above conditions are not met, continue to iterate the sampling and re-evaluate the convergence regularly until the convergence conditions are met. In addition, for cases of poor mixing or insufficient burn-in period, the parameters of the model or sampling algorithm need to be adjusted. In the above way, the stability and reliability of the sampling results are ensured.
[0105] S11-4, through Markov chain Monte Carlo sampling, the sample distribution of each feature regression coefficient is obtained.
[0106] S11-5, calculate the quantitative contribution and uncertainty of each feature:
[0107] Calculate the mean of the regression coefficient samples for each feature, which represents the average contribution of the feature.
[0108] Calculate the sample standard deviation of each feature regression coefficient to represent the uncertainty of the feature contribution.
[0109] The absolute value of the mean is divided by the standard deviation to obtain the distribution contribution weight, which represents the relative importance of the feature.
[0110] The distribution contribution weight is used to represent and reflect the importance of the feature to the fuel consumption prediction model and its uncertainty. The larger the weight, the higher the importance of the feature in the model, the greater the impact on the fuel consumption prediction, and the smaller the uncertainty; the smaller the weight, the lower the importance of the feature in the model, the smaller the impact on the fuel consumption prediction, and the greater the uncertainty.
[0111] The distribution contribution weight is used to represent the relative importance of the feature to fuel consumption. Its calculation process includes obtaining the sample distribution of each feature regression coefficient through Markov chain Monte Carlo sampling, calculating the mean of each feature regression coefficient sample to represent the average contribution of the feature, calculating the standard deviation of each feature regression coefficient sample to represent the uncertainty of the feature contribution, and dividing the absolute value of the mean by the standard deviation to obtain the distribution contribution weight. The posterior distribution of the regression coefficient is sampled by Bayesian inference combined with the Markov chain Monte Carlo (MCMC) method to quantify the contribution and uncertainty of the feature to fuel consumption. This is because Bayesian inference can combine prior information and data for inference, making the results more robust. The MCMC method can effectively sample in high-dimensional space to obtain the posterior distribution of the regression coefficient, thereby quantifying the contribution and uncertainty of the feature to fuel consumption. At the same time, the stability and convergence of the sampling results are ensured through Gibbs sampling and other technologies, providing more accurate and reliable analysis results.
[0112] The excellence index and distribution contribution weight are combined to extract and screen out important features that have a significant impact on fuel consumption, and the fusion superiority coefficient is obtained. Specifically, the excellence index and distribution contribution weight of each feature are normalized. Normalization is done by dividing the excellence index of each feature by the sum of all feature excellence indexes, and dividing the distribution contribution weight of each feature by the sum of all feature distribution contribution weights, to ensure that the relative importance of different features is compared on the same scale to avoid the impact caused by different numerical scales. Then, the normalized excellence index and distribution contribution weight are weighted averaged to obtain the fusion superiority coefficient. The importance of the two indicators is balanced by the pre-set weight coefficient. The weight coefficient can be adjusted according to specific scenarios and needs to ensure flexibility and accuracy under different feature screening criteria. Finally, the fusion superiority coefficient reflects the comprehensive importance of each feature in two different dimensions: data purity improvement in the random forest model and uncertainty quantification in Bayesian inference. The fusion superiority coefficient helps to more comprehensively and accurately identify important features that have a significant impact on fuel consumption, ensuring that the selected features can not only accurately explain the changes in fuel consumption, but also maintain a high classification effect in a complex data environment, thereby improving the overall performance and explanatory power of the model. In this way, combining the excellence index in the random forest model and the distribution contribution weight in Bayesian inference, we can fully utilize the advantages of the two methods to achieve a multi-dimensional evaluation of feature importance and ensure the overall performance and explanatory power of the model.
[0113] The fusion superiority coefficient is an indicator obtained by weighted average of the normalized excellence index and distribution contribution weight. This coefficient is used to comprehensively measure the contribution of each feature to data purity improvement in the random forest model and the uncertainty quantification contribution obtained by Bayesian inference combined with Markov Chain Monte Carlo (MCMC) method.
[0114] The fusion superiority coefficient represents and reflects the importance of each feature in two different dimensions: on the one hand, it reflects the ability of the feature to improve data purity through node splitting in random forests, and on the other hand, it reflects the uncertainty quantification contribution of the feature in Bayesian inference. The larger the coefficient, the higher the importance of the feature in the overall model, the greater the impact on fuel consumption prediction, and the smaller the uncertainty of the model's contribution to it; the smaller the coefficient, the lower the importance of the feature, the smaller the impact on fuel consumption prediction, and the greater the uncertainty of the model's contribution to it.
[0115] By calculating the fusion superiority coefficient, important features that have a significant impact on fuel consumption can be comprehensively and accurately identified, thereby improving the overall performance and explanatory power of the model.
[0116] The normalized excellence index and distribution contribution weight are weighted averaged by the preset weight coefficient to obtain the fusion superiority coefficient of each feature;
[0117] The fusion superiority coefficients of all features are sorted from large to small, and the features whose fusion superiority coefficients are greater than the screening threshold are selected as important features that have a significant impact on fuel consumption, and are marked as important features.
[0118] The present invention can accurately identify important features that have a significant impact on fuel consumption through a systematic feature extraction and screening method. Specifically, the Gini gain in the random forest model is used to evaluate the contribution of features to the improvement of data purity, and the Bayesian inference and Markov chain Monte Carlo (MCMC) methods are combined to quantify the contribution and uncertainty of features to fuel consumption, forming two key indicators: excellence index and distribution contribution weight. By normalizing and weighted averaging these two indicators, the fusion superiority coefficient is calculated to comprehensively measure the importance of each feature. The fusion superiority coefficients are sorted from large to small, and the features that have a significant impact on fuel consumption are screened out, and the model is optimized accordingly. Not only does it improve the accuracy and explanatory power of the model, but it can also maintain a high classification effect in a complex data environment, ensuring the effectiveness and reliability of the selected features in practical applications, and helping to achieve more accurate fuel consumption prediction and optimization, thereby improving the performance and application value of the overall model.
[0119] Step S2 includes the following contents:
[0120] S2-1, all important feature data are standardized so that different important features have the same scale. Standardization is achieved by subtracting the mean of each important feature value and then dividing it by its standard deviation.
[0121] S2-2, by comparing the silhouette coefficients corresponding to different numbers of clusters, the number of clusters with the largest silhouette coefficient is taken as the optimal number of clusters. The silhouette coefficient measures the compactness of data points within their clusters and the degree of separation of data points from the nearest cluster.
[0122] S2-3, clustering is performed using Gaussian mixture model (GMM), because the Gaussian mixture model can handle clusters of different shapes and sizes and is suitable for complex data distribution.
[0123] S2-4, train the Gaussian mixture model using the expectation maximization (EM) algorithm:
[0124] b1, initialize cluster centers and covariance matrix.
[0125] b2, in the expectation step, the posterior probability of each data point belonging to each Gaussian distribution is calculated.
[0126] b3, in the maximization step, update the model parameters including mean, covariance and weights.
[0127] b4, by repeatedly iterating the expectation step and the maximization step until the model parameters converge, a stable clustering result is obtained.
[0128] Until the model parameters converge, execute parameter convergence by iteratively updating the model parameters, and check the change amplitude of the parameters after each iteration. The specific process is: calculate the posterior probability of each data point belonging to each Gaussian distribution in the expectation step of the expectation maximization (EM) algorithm, and update the mean, covariance and weight parameters of the model in the maximization step. After each update, calculate the difference between the new parameters and the previous parameters. If the change amplitude of all parameters is less than the preset convergence threshold, the parameters are considered to have converged; for example, set a very small threshold such as 0.001. When the change of the model parameters in two consecutive iterations is less than the threshold, stop the iteration and consider that the model has reached the convergence state. In addition, the change of the log-likelihood function can be calculated to assist in judging convergence. When the change of the log-likelihood function in consecutive iterations is less than the set threshold, the model parameters can also be considered to have converged. These methods ensure the stability and reliability of the clustering results, thereby providing a solid foundation for subsequent analysis.
[0129] S2-5, divide different driving condition categories.
[0130] Calculate the important feature mean and standard deviation of the data points within each cluster, quantify the feature distribution of each cluster, and clarify the feature label of each cluster, such as high-speed driving, low-speed driving, high load, low load, etc. Further, by analyzing the actual situation corresponding to the driving data in each cluster, verify and correct the preliminary divided driving condition categories to ensure their rationality and accuracy; compare the clustering results with external data, such as road conditions, weather conditions, etc., to further refine and confirm the definition of each driving condition category. Through the above process, the clustered clusters can be systematically divided into different driving condition categories, providing accurate basic data for fuel consumption prediction and optimization.
[0131] Step S3 includes the following contents:
[0132] S3-1, extract the data corresponding to important features in the vehicle's operating data in the current time period, including driving speed, acceleration, road conditions, temperature, load weight, fuel consumption, etc., input the extracted data into the trained clustering model to obtain the clustering label of each data point.
[0133] S3-2, counting the number of data points of each cluster label in the current time period, calculating the distribution ratio of each label, and obtaining the distribution ratio of each label by comparing the number of data points of each label in the current time period with the total number of data points.
[0134] S3-3, calculate the silhouette coefficient in the current time period. The silhouette coefficient measures the closeness of a data point in its cluster and the degree of separation from the nearest cluster. The silhouette coefficient in the current time period is calculated by comparing the average distance of a data point to other data points in its cluster with the average distance to the nearest cluster. Calculate the consistency of clustering labels in the current time period and historical data, and evaluate the stability of the clustering model by comparing the changes in label distribution. Specifically, by comparing the distribution ratio of each label in the current time period with the distribution ratio of the same label in historical data, calculate the sum of label distribution changes and obtain cluster consistency.
[0135] S3-4, according to the changes in cluster label distribution and performance indicators, calculate the explanatory power degradation coefficient of the clustering model, combine the silhouette coefficient and cluster consistency index in the current time period, calculate the explanatory power degradation coefficient in a weighted manner, and measure the performance of the model in the current time period.
[0136] S3-5, compare the explanatory power degradation coefficient and the explanatory power threshold interval, and separate three situations to represent the three states of the clustering model's explanatory power. The specific situations are as follows:
[0137] When the explanatory power degradation coefficient is less than the lower threshold, it means that the clustering model has a good ability to explain the current data, the performance of the model in the current time period is consistent with the historical data, the clustering results are stable and reliable, and a good explanatory power signal is generated.
[0138] When the explanatory power degradation coefficient is between the lower threshold and the upper threshold, it means that the clustering model's ability to explain the current data has declined, but it is still within an acceptable range. The model needs further observation and possible adjustment, generating a fuzzy explanatory power signal.
[0139] When the explanatory power degradation coefficient is greater than the upper threshold, it means that the clustering model's ability to explain the current data has significantly decreased, the performance of the model in the current time period is quite different from the historical data, the clustering results are unstable, and it may be necessary to retrain the model or adjust the parameters significantly to generate a signal of decreased explanatory power.
[0140] Step S4 includes the following contents:
[0141] S4-1, if no explanatory power decline signal is generated, the anomaly score of each data point is calculated, and the anomaly score is quantified by using the distance between the eigenvalue of each data point and the cluster center. Specifically, the Mahalanobis distance is used to calculate the distance between the data point and the center of the cluster to which it belongs, and the anomaly score of each data point is obtained. The Mahalanobis distance considers the covariance structure of the data point distribution, making the calculation result more accurate and reliable.
[0142] S4-2, counting the number of data points whose anomaly scores exceed the threshold in the current time period, and calculating the proportion of the anomaly data points in the total data points. Specifically, by comparing the anomaly score of each data point with the anomaly threshold, counting the number of data points greater than the anomaly threshold, and obtaining the proportion of the anomaly data points to the total data points, i.e., the anomaly data point ratio;
[0143] S4-3, comprehensively evaluate the abnormal fuel consumption in the current time period based on the proportion of abnormal data points. If the proportion of abnormal data points is greater than the abnormal fuel consumption detection threshold, it is considered that the abnormal fuel consumption in the current time period is serious and may require further analysis and intervention, and issue an early warning reminder; if the proportion of abnormal data points is less than or equal to the abnormal fuel consumption detection threshold, it is considered that the fuel consumption is within the normal range.
[0144] Step S5 includes the following contents:
[0145] If the explanatory power fuzzy signal obtained in step S3 is a signal, the initial fuel consumption abnormality detection threshold is dynamically adjusted according to the explanatory power degradation coefficient. The adjusted abnormality detection threshold is obtained to replace the initial fuel consumption abnormality detection threshold, for example, the following formula is used for calculation: ;
[0146] in, represents the adjusted anomaly detection threshold; represents the initial fuel consumption abnormality detection threshold; is the adjustment coefficient, which is used to control the threshold adjustment range; is the explanatory power degradation coefficient.
[0147] The explanatory fuzzy signal indicates that there is uncertainty or fluctuation in the clustering model's ability to explain the data in the current time period. By dynamically adjusting the anomaly detection threshold, we can more flexibly respond to changes in data characteristics, improve the accuracy and sensitivity of anomaly detection, and avoid false positives or omissions due to decreased model explanatory power. By adjusting the coefficient to control the adjustment range of the threshold, we can ensure that the model can adaptively adjust the anomaly detection standard in different data environments, thereby maintaining the consistency and reliability of fuel consumption anomaly detection and providing solid data support and decision-making basis for further optimizing fuel consumption management.
[0148] The present invention trains the model by inputting important feature data into the clustering algorithm, determines the optimal number of clusters, extracts data from the current time period and obtains cluster labels, calculates and analyzes clustering performance indicators, evaluates model stability and consistency through the explanatory power degradation coefficient, and dynamically adjusts the fuel consumption anomaly detection threshold. The overall beneficial effect is that by comprehensively considering the explanatory power of the clustering model and the changes in historical data, the detection threshold is dynamically adjusted, the accuracy and flexibility of fuel consumption anomaly detection are improved, the stability and reliability of the model in different time periods are ensured, the practicality and accuracy of fuel consumption prediction and management are effectively improved, and solid data support and decision-making basis are provided for further optimizing fuel consumption management.
[0149] The present invention can more accurately identify abnormal fuel consumption by utilizing multiple steps such as important feature extraction, cluster analysis, model explanation power evaluation, and dynamic threshold adjustment. Specifically, the historical data is first subjected to feature extraction and standardization, and different driving condition categories are identified through a clustering algorithm. The explanatory power degradation coefficient is then used to evaluate the model's explanatory power in the current time period. Combined with the method of abnormal score and dynamic threshold adjustment, the abnormal fuel consumption is comprehensively evaluated and detected in real time. By comprehensively considering the changes in data features and the dynamic adjustment of the model's explanatory power, the accuracy and flexibility of abnormal fuel consumption detection are ensured, and it can effectively respond to fuel consumption fluctuations in different environments and driving conditions, and improve the reliability and decision-making support capabilities of fuel consumption management and optimization.
[0150] Example 2
[0151] Figure 2 The invention provides a network freight oil product deduction information supervision system, including: a historical data quantification module, a clustering condition division module, a real-time data analysis module, an abnormal score statistics module and a judgment condition adjustment module;
[0152] Historical data quantification module: collects historical operation data of vehicles, samples the posterior distribution of regression coefficients through Bayesian inference combined with Markov chain Monte Carlo, quantifies the contribution and uncertainty of features to fuel consumption, and evaluates the contribution of features to data purity improvement through the Gini gain of each tree at the node splitting, comprehensively extracts and screens out important features that have a significant impact on fuel consumption, and sends the screened important features and their quantified contributions and uncertainties to the clustering condition partitioning module;
[0153] Clustering condition division module: inputs the filtered important feature data into the clustering algorithm to perform model training, divides different driving condition categories based on the optimal number of clusters, and sends the clustering model and its corresponding driving condition category labels to the real-time data analysis module;
[0154] Real-time data analysis module: extract the data corresponding to important features in the current time period, input them into the trained clustering model, obtain clustering labels, analyze the explanatory power of the existing clustering model for the current data, evaluate the stability and consistency of the model through clustering label distribution analysis and clustering performance index calculation, obtain the explanatory power degradation coefficient to judge the explanatory power of the clustering model in the current time period, and send the clustering label and explanatory power degradation coefficient of the current time period to the abnormal score statistics module;
[0155] Abnormal score statistics module: when the interpretation ability meets the standard, the proportion of data points exceeding the abnormal score threshold in the current time period is counted according to the cluster labels obtained by the real-time data analysis module, the abnormal fuel consumption in the current time period is comprehensively evaluated, and the proportion of abnormal fuel consumption data points in the current time period is sent to the judgment condition adjustment module;
[0156] Judgment condition adjustment module: Use the explanatory power degradation coefficient to adjust the threshold range of fuel consumption anomaly detection and dynamically identify fuel consumption anomalies in the current time period.
[0157] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0158] The above description is only by way of illustration of certain exemplary embodiments of the present invention. It is undoubted that those skilled in the art can modify the described embodiments in various ways without departing from the spirit and scope of the present invention. Therefore, the above drawings and descriptions are illustrative in nature and should not be construed as limiting the scope of protection of the claims of the present invention.
[0159] It should be noted that, in this article, if there are relational terms such as first and second, etc., they are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including a..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0160] 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. Supervision methods for online freight oil product deduction information, Features: S1, collect historical vehicle operation data, sample the posterior distribution of regression coefficients through Bayesian inference combined with Markov Chain Monte Carlo, quantify the contribution and uncertainty of features to fuel consumption, and evaluate the contribution of features to data purity improvement through the Gini gain of each tree at the node splitting, and comprehensively extract and screen out important features that have a significant impact on fuel consumption; S2, inputting the filtered important feature data into the clustering algorithm to perform model training, and dividing different driving condition categories according to the optimal number of clusters; S3, extract the data corresponding to the important features in the current time period, input them into the trained clustering model, obtain clustering labels, analyze the explanatory power of the existing clustering model for the current data, evaluate the stability and consistency of the model through clustering label distribution analysis and clustering performance index calculation, and obtain the explanatory power degradation coefficient to judge the explanatory power of the clustering model in the current time period; S4, when the interpretation capability meets the standard, based on the labels obtained in step S3, the proportion of data points exceeding the abnormal score threshold in the current time period is counted, and the abnormal fuel consumption in the current time period is comprehensively evaluated; S5, using the explanatory power degradation coefficient to adjust the threshold range of fuel consumption anomaly detection, and dynamically adjust the evaluation standard of fuel consumption anomaly in the current time period; The posterior distribution of the regression coefficient is sampled by combining Bayesian inference with the Markov Chain Monte Carlo method to quantify the contribution and uncertainty of the feature to fuel consumption. The specific calculation process is as follows: S11-1, the relationship between fuel consumption and feature matrix is expressed as a linear regression model, where fuel consumption is a linear combination of features combined with a random error term; the regression coefficients and error terms are assumed to follow a multivariate normal distribution and an inverse gamma distribution, respectively; S11-2, set the prior distribution of the regression coefficient and the error term. The prior distribution of the regression coefficient is a multivariate normal distribution with a mean of zero, and the covariance matrix is the regularization parameter multiplied by the unit matrix; The prior distribution of the error term is an inverse gamma distribution, with shape and scale parameters being constants; S11-3, sample regression coefficients and error terms from the posterior distribution by Gibbs sampling: a1, sets the initial values of the regression coefficient and error term; a2, given the current error term, sample the regression coefficients from the conditional posterior distribution; calculate the mean and covariance matrix of the regression coefficients, the mean is the transpose of the feature matrix multiplied by the feature matrix, plus the regularization parameter multiplied by the inverse matrix of the identity matrix, multiplied by the transpose of the feature matrix and then multiplied by the fuel consumption vector; the covariance matrix is the transpose of the feature matrix multiplied by the feature matrix, plus the regularization parameter multiplied by the inverse matrix of the identity matrix, multiplied by the variance of the current error term; a3, sampling the error term from the conditional posterior distribution given the current regression coefficients; The shape parameter of the error term is the a priori shape parameter plus half the number of data points, and the scale parameter is the a priori scale parameter plus half the sum of the squares of the current fuel consumption minus the feature matrix multiplied by the regression coefficient; a4, repeat the steps of sampling regression coefficients and error terms until the sampling results converge and a stable sample distribution of the regression coefficients is obtained; S11-4, obtain the sample distribution of each feature regression coefficient through Markov chain Monte Carlo sampling; S11-5, calculate the quantitative contribution and uncertainty of each feature: Calculate the mean of each feature regression coefficient sample to represent the average contribution of the feature; Calculate the standard deviation of each feature regression coefficient sample to represent the uncertainty of the feature contribution; Divide the absolute value of the mean by the standard deviation to obtain the distribution contribution weight, which represents the relative importance of the feature; The excellence index and distribution contribution weight are combined to extract and screen out important features that have a significant impact on fuel consumption, and the fusion superiority coefficient is obtained, which is: Normalize the excellence index and distribution contribution weight of each feature; The normalized excellence index and distribution contribution weight are weighted averaged by the preset weight coefficient to obtain the fusion superiority coefficient of each feature; The fusion superiority coefficients of all features are sorted from large to small, and the features whose fusion superiority coefficients are greater than the screening threshold are selected as important features that have a significant impact on fuel consumption, and are marked as important features.
2. The network freight oil product deduction information supervision method according to claim 1, Features: The contribution of features to data purity improvement is evaluated by the Gini gain of each tree at the node split. The specific process is as follows: S1-1, use the training data to train the random forest model. The random forest consists of multiple decision trees, each of which is generated by random sampling with replacement from the training data, using a subset of features for split selection; S1-2, in the process of building each tree, the node is split by selecting the optimal feature to maximize the Gini gain; The Gini impurity of a node is calculated by calculating the sum of squares of the proportions of samples of different categories in the node, and then expressed as 1 minus the sum of squares; Gini gain represents the difference in Gini impurity before and after the node split. Specifically, it is the weighted average of the Gini impurity of the parent node minus the Gini impurity of the left and right child nodes after the split. The weight is the proportion of the number of samples of each child node to the total number of samples of the parent node. S1-3, in each tree, calculate the Gini gain of each feature when the node is split, and add it to the corresponding feature to indicate the importance contribution of the feature in this tree; For the entire random forest, the Gini gain of each feature in all trees is accumulated to calculate the importance contribution of the feature in the entire random forest, which is marked as the excellence index.
3. The network freight oil product deduction information supervision method according to claim 2, Features: Step S2 includes the following contents: S2-1, standardize all important feature data; S2-2, by comparing the silhouette coefficients corresponding to different numbers of clusters, the number of clusters with the largest silhouette coefficient is used as the optimal number of clusters; S2-3, clustering by Gaussian mixture model; S2-4, use the expectation maximization algorithm to train the Gaussian mixture model: b1, initialize cluster centers and covariance matrices; b2, in the expectation step, calculate the posterior probability that each data point belongs to each Gaussian distribution; b3, in the maximization step, update the model parameters, including mean, covariance and weight; b4, by repeatedly iterating the expectation step and the maximization step until the model parameters converge, a stable clustering result is obtained; S2-5, divide different driving condition categories.
4. The method for supervising network freight oil product deduction information according to claim 3, Features: Step S3 includes the following contents: S3-1, extracting data corresponding to important features from the vehicle operation data in the current time period, inputting the extracted data into the trained clustering model, and obtaining a clustering label for each data point; S3-2, counting the number of data points of each cluster label in the current time period, calculating the distribution ratio of each label, and obtaining the distribution ratio of each label by comparing the number of data points of each label in the current time period with the total number of data points; S3-3, by comparing the average distance of a data point to other data points in its cluster with the average distance to the nearest cluster, calculate the silhouette coefficient in the current time period, and by comparing the distribution ratio of each label in the current time period with the distribution ratio of the same label in the historical data, calculate the sum of the label distribution changes to obtain cluster consistency; S3-4, combining the silhouette coefficient and cluster consistency index in the current time period, and calculating the explanatory power degradation coefficient in a weighted manner; S3-5, compare the explanatory power degradation coefficient and the explanatory power threshold interval, and separate three situations to represent the three states of the clustering model's explanatory power. The specific situations are as follows: When the explanatory power degradation coefficient is less than the lower threshold, a signal of explanatory power advantage is generated; When the explanatory power degradation coefficient is between the lower threshold and the upper threshold, an explanatory power fuzzy signal is generated; When the explanatory power degradation coefficient is greater than the upper threshold, an explanatory power reduction signal is generated.
5. The network freight oil product deduction information supervision method according to claim 4, Features: Step S4 includes the following contents: S4-1, if no explanatory power decline signal is generated, the Mahalanobis distance is used to calculate the distance between the data point and the center of the cluster to which it belongs, and the anomaly score of each data point is obtained; S4-2, by comparing the abnormal score of each data point with the abnormal threshold, counting the number of data points greater than the abnormal threshold, and obtaining the ratio of abnormal data points to the total data points, i.e., the abnormal data point ratio; S4-3: If the proportion of abnormal data points is greater than the fuel consumption abnormality detection threshold, an early warning reminder is issued.
6. The method for supervising network freight oil product deduction information according to claim 5, Features: Step S5 includes the following contents: If the explanatory power fuzzy signal obtained in step S3 is a signal, the initial fuel consumption abnormality detection threshold is dynamically adjusted according to the explanatory power degradation coefficient; An adjusted abnormality detection threshold is obtained to replace the initial fuel consumption abnormality detection threshold.
7. A network freight oil product deduction information supervision system, used to implement the network freight oil product deduction information supervision method according to any one of claims 1 to 6, include: Historical data quantification module, clustering condition division module, real-time data analysis module, abnormal score statistics module and judgment condition adjustment module; Historical data quantification module: collects historical operation data of vehicles, samples the posterior distribution of regression coefficients through Bayesian inference combined with Markov chain Monte Carlo, quantifies the contribution and uncertainty of features to fuel consumption, and evaluates the contribution of features to data purity improvement through the Gini gain of each tree at the node splitting, comprehensively extracts and screens out important features that have a significant impact on fuel consumption, and sends the screened important features and their quantified contributions and uncertainties to the clustering condition partitioning module; Clustering condition division module: inputs the filtered important feature data into the clustering algorithm to perform model training, divides different driving condition categories based on the optimal number of clusters, and sends the clustering model and its corresponding driving condition category labels to the real-time data analysis module; Real-time data analysis module: extract the data corresponding to important features in the current time period, input them into the trained clustering model, obtain clustering labels, analyze the explanatory power of the existing clustering model for the current data, evaluate the stability and consistency of the model through clustering label distribution analysis and clustering performance index calculation, obtain the explanatory power degradation coefficient to judge the explanatory power of the clustering model in the current time period, and send the clustering label and explanatory power degradation coefficient of the current time period to the abnormal score statistics module; Abnormal score statistics module: when the interpretation ability meets the standard, the proportion of data points exceeding the abnormal score threshold in the current time period is counted according to the cluster labels obtained by the real-time data analysis module, the abnormal fuel consumption in the current time period is comprehensively evaluated, and the proportion of abnormal fuel consumption data points in the current time period is sent to the judgment condition adjustment module; Judgment condition adjustment module: Use the explanatory power degradation coefficient to adjust the threshold range of fuel consumption anomaly detection and dynamically identify fuel consumption anomalies in the current time period.
Citation Information
Patent Citations
Multivariable closed-loop control loop performance evaluation method based on Gaussian process regression
CN111679648A
Transmission monitoring system for relay protection overhaul test of intelligent substation
CN118171195A
Method for Detecting Abnormal Data in Sensor Network
US20200374720A1
