Rural highway condition index data quality restoration method and system based on Stacking ensemble learning
The Stacking integrated learning method is used to clean and fill in the rural road condition indicator data, which solves the problem of missing data, improves the data quality, and provides reliable data support for rural road maintenance decisions.
Patent Information
- Application Number
- CN202410606650.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-16
AI Technical Summary
Existing technology is difficult to effectively solve the problem of random missing data on rural road condition indicators, which affects the accuracy of maintenance decisions and data quality.
An integrated learning method based on Stacking is used to perform abnormal cleaning and pattern classification on rural highway traffic indicator data, construct a filling feature set, use the Lasso regression algorithm for variable selection, and perform data filling through basic learners such as KNN, MissForest and XGBoost to achieve Dimensionality reduction and accurate repair of data.
It has significantly improved the data quality of low-grade rural roads, provided solid technical support, provided reliable data support for maintenance decisions and technical status assessment, and met the needs of actual engineering applications.
Smart Images

Figure CN118568079A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of rural road maintenance and data quality repair, and specifically relates to a rural road road condition indicator data quality repair method and system based on Stacking ensemble learning. Background Art
[0002] In recent years, as the basic work to support the assessment of road technical conditions and maintenance decision-making, the construction of automated rapid detection systems for rural road conditions has been accelerated in various provinces. The accumulated data resources for automated detection of rural road conditions are huge, and the value of their data assets needs to be explored and utilized urgently.
[0003] However, the complex and diverse quality issues of rural road condition detection data restrict the effective application of data, and the accuracy of the data is related to the rationality of rural road maintenance decisions. Before making maintenance decisions, rural road condition indicator data that do not meet the accuracy and effectiveness requirements are usually cleaned and deleted, but this causes random missing indicator data, which will affect the deployment of maintenance decision-making work across the entire road network. Therefore, how to use a scientific and reasonable data filling method to delay the repair of low-level rural road condition indicator data after outlier cleaning is one of the urgent problems to be solved in the field of rural road maintenance and data quality repair.
[0004] According to existing literature, in recent years, with the development of actual needs and related technologies, algorithms such as deep learning, machine learning and graph networks have been widely used in data quality repair issues. The invention with patent number CN117786529A discloses a method for intelligent repair of SCADA data of wind turbines. The invention establishes a generator and discriminator of a deep learning generative adversarial network, and optimizes their respective parameters to perform intelligent data repair; the invention with patent number CN117743938A discloses a method and system for abnormal identification and repair of unbalanced data. Through algorithms such as clustering and isolation forest, the data is divided into different clusters, abnormal data is identified, and the data repair model based on heterogeneous variational autoencoders is used to repair mixed data anomalies and missing data. In terms of transportation, the invention with patent number CN117633447A discloses a method for repairing traffic flow data based on missing judgment of traffic flow data collection equipment, and constructs a generative adversarial network containing a graph transformation network GTN to output repair data.
[0005] However, in terms of pavement maintenance decisions, road condition data, and especially for automated detection data of rural roads, related repair research and invention methods are still blank. It is urgent to build a rural road pavement condition data repair model based on machine learning, integrated learning and other algorithms, to scientifically and rationally fill in the road condition index data, and accurately repair it, so as to further improve the development of maintenance decision-making. Summary of the invention
[0006] Purpose of the invention: The present invention proposes a method and system for repairing the quality of rural road condition index data based on Stacking ensemble learning. Aiming at the problem of random missing of road condition index data, the road condition index data of low-grade rural roads are repaired, which can substantially improve the data quality and provide solid technical support for technical condition assessment, maintenance management and other work of low-grade rural roads.
[0007] Technical solution: To achieve the above-mentioned purpose of the invention, the method for repairing rural road condition index data quality based on Stacking ensemble learning described in the present invention specifically includes the following steps:
[0008] (1) Perform anomaly cleaning on rural road condition index data and original collected data, and classify the missing patterns of rural road condition index data, including source missing patterns and sub-indicator missing patterns;
[0009] (2) For data whose missing pattern is a source missing pattern, a filling feature set is constructed based on the intrinsic correlation of the disease and the law of pavement decay; for data whose missing pattern is a sub-indicator missing pattern, a filling feature set is constructed based on the law of pavement decay;
[0010] (3) For the constructed filling feature set, the Lasso regression algorithm is used for variable selection, redundant variables are eliminated, and the repair combination after dimensionality reduction is obtained;
[0011] (4) Select the base learner of the Stacking ensemble model, split the original data into a training set and a test set, and train each base learner;
[0012] (5) Based on the trained Stacking ensemble model, the rural road automated inspection index data is filled according to the patch combination after dimensionality reduction.
[0013] Furthermore, the rural road condition index data in step (1) include the pavement damage condition index (PCI), pavement ride quality index (RQI) and pavement technical condition index (PQI) of previous years, wherein the overall index is PQI, and the sub-indicators are PCI and RQI; the original collected data in step (1) are data used to calculate the rural road condition index, including the damage area data and damage rate (DR) related to PCI over the years and the international roughness index (IRI) related to RQI, wherein the damage area data include cracks, longitudinal cracks, transverse cracks, potholes of asphalt pavement, and broken plates, cracks, potholes, exposed bones, etc. of cement pavement.
[0014] Furthermore, the source missing mode refers to the missing of indicator data caused by the missing of original collected data. For the source missing mode, a repair method combining longitudinal and transverse repair can be adopted. The specific ideas include: ① Fill the disease area based on the correlation between diseases (cracking, longitudinal cracks, transverse cracks, potholes and potholes of asphalt pavement, broken plates, cracks, potholes and exposed diseases of cement pavement); ② Repair DR or PCI based on the correlation between the non-missing disease area data and DR or PCI; ③ Fill PCI, RQI or PQI data based on the temporal variation law of the indicator data itself. Among them, PCI repair involves the missing of multiple variables related to the disease area, and it is advisable to fill them one by one starting from the variable with the lowest missing ratio. The sub-indicator missing mode refers to the missing of the total indicator PQI data caused by the missing of sub-indicators PCI and RQI. Since it is impossible to calculate reasonable indicator data based on the original collected data with questionable accuracy, the original collected data does not have a reference value for horizontal filling. It is advisable to adopt a longitudinal repair method, that is, fill PCI, RQI or PQI data based on the temporal variation law of the indicator data itself.
[0015] Furthermore, in step (3), the Lasso regression algorithm is used to select variables, and redundant variables are eliminated to obtain the patch combination after dimensionality reduction, which includes the following steps:
[0016] (3-1) Standardize the data set;
[0017] (3-2) Set the Lasso regression objective function as:
[0018]
[0019] Among them, β Lasso is the coefficient vector of Lasso regression, X j is the jth characteristic variable, p is the number of characteristic variables, Y is the observed value, β is the parameter vector to be estimated, β j is the parameter of the jth feature variable, λ is the penalty term coefficient, For penalty items;
[0020] (3-3) The K-fold cross validation method was used to calculate the mean square error (RMSE) and the order in which each eigenvalue influencing factor entered the model and the changes in the proportion of the fitting coefficient value under different λ;
[0021] (3-4) Eliminate the variables whose fitting coefficients are still 0 when the horizontal axis is 0, and the remaining variables are the repair combinations after dimensionality reduction.
[0022] Furthermore, the base learner of the Stacking ensemble model described in step (4) includes KNN, and the filling step includes:
[0023] (4-1-1) Sort the missing data items from low to high according to the missing ratio;
[0024] (4-1-2) For the data items with the lowest missing proportion, the mean imputation method is used for initial filling;
[0025] (4-1-3) The remaining data items with the lowest missing ratio to be repaired are taken as the prediction target, and the remaining variables are taken as influencing factors. The KNN model is trained using data records without missing values for filling;
[0026] (4-1-4) The original data is randomly divided into K parts, one of which is selected as the training set each time, and the rest are the test sets;
[0027] (4-1-5) Traverse all specified k values to train the KNN model, and repeat cross-validation K times for each k value;
[0028] (4-1-6) Calculate the average of K cross-validation accuracy rates to obtain the model accuracy corresponding to the k value;
[0029] (4-1-7) Compare the model accuracy corresponding to all k values, and obtain the optimal k value and the corresponding KNN model and the corresponding filling result;
[0030] (4-1-8) Use the obtained filling results to update the filling matrix and fill the remaining variables in turn until all data are filled.
[0031] Furthermore, the base learner of the Stacking ensemble model described in step (4) includes MissForest, and its filling step includes:
[0032] (4-2-1) Sort the missing data items from low to high according to the missing ratio;
[0033] (4-2-2) For the data items with the lowest missing proportion, the mean imputation method is used for initial filling;
[0034] (4-2-3) The remaining data items with the lowest missing ratio to be repaired are taken as the prediction target, and the remaining variables are taken as influencing factors. The MissForest model is trained using data records without missing values for filling;
[0035] (4-2-4) The original data is randomly divided into K parts, one of which is selected as the training set each time, and the rest are the test sets;
[0036] (4-2-5) Calculate the average of K cross-validation accuracy rates to obtain the optimal MissForest model and the corresponding filling results;
[0037] (4-2-6) Use the obtained filling results to update the filling matrix and fill the remaining variables in turn until all data are filled.
[0038] Furthermore, the base learner of the Stacking ensemble model described in step (4) includes XGBoost, and the filling step includes:
[0039] (4-3-1) Sort the missing data items from low to high according to the missing ratio;
[0040] (4-3-2) For the data items with the lowest missing proportion, the mean imputation method is used for initial filling;
[0041] (4-3-3) The remaining data items with the lowest missing ratio to be repaired are taken as the prediction target, and the remaining variables are taken as influencing factors. The XGBoost model is trained using data records without missing values for filling;
[0042] (4-3-4) The original data is randomly divided into K parts, one of which is selected as the training set each time, and the rest are the test sets;
[0043] (4-3-5) For the preset learning rate learning_rate and the maximum depth of each tree max_depth, cross validation is used to train the XGBoost model and tune the hyperparameters;
[0044] (4-3-6) Calculate the average of K cross-validation accuracy rates to obtain the model accuracy corresponding to each learning rate and the maximum depth of each tree;
[0045] (4-3-7) Compare the accuracy of all models to obtain the optimal learning rate, the maximum depth of each tree and the corresponding XGBoost model, as well as the corresponding filling results;
[0046] (4-3-8) Use the obtained filling results to update the filling matrix and fill the remaining variables in turn until all data are filled.
[0047] Furthermore, the step (5) of filling the low-level rural road automatic detection index data based on the trained Stacking ensemble model according to the patch combination after dimensionality reduction includes the following steps:
[0048] (5-1) The prediction results of KNN, MissForest, and XGBoost are merged horizontally and used as new training sets to input into the secondary model for training;
[0049] (5-2) Use the trained Stacking ensemble model to complete the rural road automated inspection index data filling based on the patch combination after dimensionality reduction.
[0050] Based on the same inventive concept, the present invention provides a rural road condition index data quality repair system based on Stacking ensemble learning, comprising:
[0051] The preprocessing module is used to clean up the rural road condition index data and the original collected data, and to classify the missing patterns of the rural road condition index data, including the source missing pattern and the sub-indicator missing pattern;
[0052] The filling feature set construction module is used to construct a filling feature set for data whose missing pattern is a source missing pattern according to the inherent correlation of the disease and the law of pavement decay; for data whose missing pattern is a sub-indicator missing pattern, a filling feature set is constructed according to the law of pavement decay;
[0053] The feature set dimensionality reduction module is used to select variables for the constructed filling feature set using the Lasso regression algorithm, eliminate redundant variables, and obtain the repair combination after dimensionality reduction;
[0054] The model training module is used to select the base learners of the Stacking ensemble model, split the original data into training sets and test sets, and train each base learner;
[0055] And the data filling module is used to fill the data of rural road automatic detection indicators based on the trained Stacking integration model and the patch combination after dimensionality reduction.
[0056] Based on the same inventive concept, the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the rural road condition index data quality repair method based on Stacking ensemble learning.
[0057] Beneficial effects: Compared with the prior art, the rural highway road condition index data quality repair method based on Stacking ensemble learning of the present invention divides the rural highway road condition index data missing mode in combination with the characteristics of rural highway automated detection data; in view of the problem of random missing of road condition index data during the collection and cleaning of rural highway automated detection data, a filling feature set is constructed according to the intrinsic correlation of diseases and the law of pavement decay, and the Lasso regression algorithm is used for dimensionality reduction, and data filling is performed based on the Stacking ensemble model. The present invention makes full use of the existing rural highway automated detection data results, and adopts a scientific and reasonable filling method to solve the problem of random missing of section index data caused by data cleaning, and repairs the rural highway road condition index data after outlier cleaning. The present invention has excellent filling effect, meets the actual engineering application needs, and provides solid technical and data support for substantially improving the quality of low-grade rural highway automated detection data, rural highway technical status assessment and whole road network maintenance decision-making. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 This is a flow chart of a rural road condition index data quality repair method based on Stacking ensemble learning according to an embodiment of the present invention. DETAILED DESCRIPTION
[0059] In order to more clearly explain the purpose, technical solutions and advantages of the present invention, the specific implementation of the present invention will be further described in detail below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. The following embodiments can enable those skilled in the art to understand the present invention more comprehensively, but do not limit the present invention in any way.
[0060] Embodiment 1:
[0061] See also Figure 1 The embodiment of the present invention discloses a method for repairing rural road condition index data quality based on Stacking ensemble learning, the method comprising the following steps:
[0062] Step (1) performs abnormal cleaning on rural road condition index data and original collected data, and divides the missing patterns of rural road condition index data into source missing patterns and sub-indicator missing patterns. The source missing pattern refers to the missing of index data caused by the missing of original collected data; the sub-indicator missing pattern refers to the missing of total index PQI data caused by the missing of sub-indicators PCI and RQI.
[0063] In order to verify the effectiveness of the rural road condition indicator data quality repair method based on Stacking ensemble learning, the example uses the low-grade rural road condition detection data of X County, T County and C City in Henan Province from 2022 to 2023. The detected pavement types include asphalt pavement and cement pavement, and the detection route technology level is level three and below. After data matching and anomaly cleaning, the asphalt pavement data set has a total of 995 samples, and the cement pavement data set has a total of 8918 samples, and the dimensions are 13. Among them, the dimensions include: ① Road construction years; ② 2023 detection original data and process data including disease area, DR, and IRI; ③ 2022-2023 indicator data including PCI, RQI, and PQI. The simple descriptive statistics of the above data are shown in Table 1.
[0064] Table 1 Descriptive statistics of specific embodiment data set
[0065]
[0066] Step (2), for data whose missing pattern is a source missing pattern, a filling feature set is constructed based on the intrinsic correlation of the disease and the law of pavement decay; for data whose missing pattern is a sub-indicator missing pattern, a filling feature set is constructed based on the law of pavement decay.
[0067] The specific embodiment data set filling feature set is shown in Table 2. Among them:
[0068] For PCI and PQI in the source missing mode, the diseased area, IRI and RQI of the current year, PCI, RQI, PQI of previous years, and years were selected as the filling feature set, see combinations 1-1, 1-2, 2-1, and 2-2 in Table 2.
[0069] For PCI and PQI with missing sub-indicator patterns, the current year’s IRI and RQI, previous years’ PCI, RQI, PQI, and years were selected as the filling feature set, see combinations 1-3, 1-4, 2-3, and 2-4 in Table 2 .
[0070] Table 2 Specific embodiment data set filling feature set
[0071]
[0072]
[0073] Step (3): For the constructed filling feature set, the Lasso regression algorithm is used to select variables, eliminate redundant variables, and obtain the repair combination after dimensionality reduction.
[0074] Furthermore, step (3) includes the following steps:
[0075] (3-1) For the 8 repair combinations of the data set of the specific embodiment, the data set is standardized.
[0076] (3-2) Set the Lasso regression objective function as:
[0077]
[0078] Among them, β Lasso is the coefficient vector of Lasso regression, X j is the jth characteristic variable, p is the number of characteristic variables, Y is the observed value, β is the parameter vector to be estimated, β j is the parameter of the jth feature variable, λ is the penalty term coefficient, For penalty items;
[0079] (3-3) The mean square error (RMSE) was calculated using the 10-fold cross validation method to calculate the order in which each eigenvalue influencing factor enters the model and the changes in the proportion of the fitting coefficient value under different λ. The calculation method of RMSE is as follows:
[0080]
[0081] In the formula, y t and are the true value and the predicted value respectively, and n is the number of filled samples. The smaller the RMSE value is, the smaller the filling error is and the higher the filling accuracy is.
[0082] (3-4) Eliminate the variables whose fitting coefficients are still 0 when the horizontal axis is 0, and the remaining variables are the repair combinations after dimensionality reduction.
[0083] For the specific embodiment data set, taking cement pavement combination 2-1 as an example, when λ=10 -5 When , RMSE reaches the minimum value of 1.6×10 -5 , at this time, the fitting coefficients of variables RQI_22, PQI_22, IRI_23 and years are compressed to 0, indicating that these features are redundant features; broken plates, cracks, potholes, exposed bones, RQI_23, and PCI_22 are the main features of the repair sub-indicator PCI in the source missing mode obtained after screening. Similarly, the feature selection results of the 8 groups of repair combinations are shown in Table 3, thereby generating 8 new groups of maintenance reduction and repair combinations.
[0084] Table 3 Specific embodiment dataset dimension reduction and filling feature set
[0085]
[0086] Step (4), select the base learner of the Stacking ensemble model, split the missing original data set into a training set and a test set, and train each base learner. This method uses three different learning algorithms, KNN, MissForest and XGBoost, as base learners, and uses them in combination to effectively complement each other, thereby improving the overall performance and robustness: KNN predicts the label or value of the test sample by finding the K samples most similar to the test sample in the training set, which can capture nonlinear relationships; MissForest uses the data set observation part to train the random forest to directly predict the missing value, and has strong adaptability to various missing patterns; XGBoost makes the predicted value and the true value approach each other through continuous and repeated iterations until they converge, with strong generalization ability and low computational complexity.
[0087] Furthermore, in step (4), a stacking ensemble model base learner is selected, a training set and a test set are split, and training each base learner includes the following steps:
[0088] (4-1) Training KNN, the implementation process includes the following steps:
[0089] (4-1-1) Sort the missing data items from low to high according to the missing ratio;
[0090] (4-1-2) For the data items with the lowest missing proportion, the mean imputation method is used for initial filling;
[0091] (4-1-3) The remaining data items with the lowest missing ratio to be repaired are taken as the prediction target, and the remaining variables are taken as influencing factors. The KNN model is trained using data records without missing values for filling;
[0092] (4-1-4) The original data is randomly divided into K parts, one of which is selected as the training set each time, and the rest are the test sets;
[0093] (4-1-5) Traverse all specified k values to train the KNN model, and repeat cross-validation K times for each k value;
[0094] (4-1-6) Calculate the average of K cross-validation accuracy rates to obtain the model accuracy corresponding to the k value;
[0095] (4-1-7) Compare the model accuracy corresponding to all k values to obtain the optimal k value and the corresponding KNN model and the corresponding filling result.
[0096] (4-1-8) Use the obtained filling results to update the filling matrix and fill the remaining variables in turn until all data are filled.
[0097] (4-2) Training MissForest, the implementation process includes the following steps:
[0098] (4-2-1) Sort the missing data items from low to high according to the missing ratio;
[0099] (4-2-2) For the data items with the lowest missing proportion, the mean imputation method is used for initial filling;
[0100] (4-2-3) The remaining data items with the lowest missing ratio to be repaired are taken as the prediction target, and the remaining variables are taken as influencing factors. The MissForest model is trained using data records without missing values for filling;
[0101] (4-2-4) The original data is randomly divided into K parts, one of which is selected as the training set each time, and the rest are the test sets;
[0102] (4-2-5) Calculate the average of K cross-validation accuracies to obtain the optimal MissForest model and the corresponding filling results.
[0103] (4-2-6) Use the obtained filling results to update the filling matrix and fill the remaining variables in turn until all data are filled.
[0104] (4-3) Training XGBoost, the implementation process includes the following steps:
[0105] (4-3-1) Sort the missing data items from low to high according to the missing ratio;
[0106] (4-3-2) For the data items with the lowest missing proportion, the mean imputation method is used for initial filling;
[0107] (4-3-3) The remaining data items with the lowest missing ratio to be repaired are taken as the prediction target, and the remaining variables are taken as influencing factors. The XGBoost model is trained using data records without missing values for filling;
[0108] (4-3-4) The original data is randomly divided into K parts, one of which is selected as the training set each time, and the rest are the test sets;
[0109] (4-3-5) For the preset learning rate learning_rate and the maximum depth of each tree max_depth, cross validation is used to train the XGBoost model and tune the hyperparameters;
[0110] (4-3-6) Calculate the average of K cross-validation accuracy rates to obtain the model accuracy corresponding to each learning rate and the maximum depth of each tree;
[0111] (4-3-7) Compare the accuracy of all models to obtain the optimal learning rate, the maximum depth of each tree and the corresponding XGBoost model, as well as the corresponding filling results;
[0112] (4-3-8) Use the obtained filling results to update the filling matrix and fill the remaining variables in turn until all data are filled.
[0113] Step (5), based on the trained Stacking ensemble model, the low-level rural road automated inspection index data is filled in according to the patch combination after dimensionality reduction.
[0114] Furthermore, in step (5), based on the Stacking integration model, filling the low-level rural road automatic detection index data according to the patch combination after dimensionality reduction includes the following steps:
[0115] (5-1) The prediction results of KNN, MissForest, and XGBoost are merged horizontally and used as new training sets to input into secondary models such as linear regression for training.
[0116] When step (5-1) is implemented on the data set of the specific embodiment, the filling performance based on the Stacking ensemble learning method is the best. The Stacking ensemble model refers to an ensemble filling model constructed with KNN, MissForest, and XGBoost as base learners; among the base learners used, KNN has a better overall performance.
[0117] The mean absolute percentage error (MAPE), root mean square error (RMSE) and average cross-grade rate (MCLE) of road condition indicators are used to analyze and evaluate the filling results of the model for two evaluation objects: filling all road section data and filling key road section data. The indicators are defined as:
[0118] ① Mean absolute percentage error MAPE:
[0119]
[0120] In the formula, y t and are the true value and the predicted value respectively, and n is the number of filled samples. The smaller the value of MAPE is, the smaller the filling error is and the higher the filling accuracy is.
[0121] ② Root mean square error RMSE:
[0122]
[0123] The smaller the RMSE value is, the smaller the filling error is and the higher the filling accuracy is.
[0124] ③ Average cross-level rate MCLE:
[0125]
[0126] In the formula, l t and They are the true value level of the indicator data and the corresponding level of the filled data. The smaller the MCLE value, the smaller the filling error and the smaller the possibility of cross-level filling of the indicator data.
[0127] Table 4 shows the average model filling effect of different reduction and repair combinations at different missing rates on key sections and all sections, and the best results are underlined. Among them, the filling model based on Stacking ensemble learning has the smallest MCLE, MAPE, and RMSE values for key sections and all sections, that is, the estimated deviation between the filled value and the actual true value is the lowest. Compared with KNN, the most advanced method in base learners, the MCLE and MAPE of the filled value of key sections are reduced by 23% and 11% respectively, and the MAPE of the filled value of all sections is reduced by 19%.
[0128] Table 4 Repair effects of different repair models in specific embodiments
[0129]
[0130] (5-2) Using the trained Stacking ensemble model, the low-level rural road automated inspection index data is filled according to the patch combination after dimensionality reduction. When the PCI patch involves missing multiple variables related to the diseased area, the variables with the lowest missing ratio are patched one by one.
[0131] To further illustrate the superior repair effect of different variable combinations after dimensionality reduction, the model is verified for the initial features (see Table 2) and the reduced dimensionality features (see Table 3). Table 5 shows the average filling effect and change value of the model using the feature subsets before and after dimensionality reduction in a specific embodiment.
[0132] Table 5. Repair effects of different feature subsets before and after dimensionality reduction in specific embodiments
[0133]
[0134] The filling effect of the model using the feature subset after dimensionality reduction is basically the same as that of the model using all initial feature variables, but the filling efficiency is improved by about 30%. As can be seen from the table, the RMSE of the filling of key road section indicators after feature dimensionality reduction is reduced by 20.5%, while the cross-level rate MCLE is slightly increased. However, given the large volume of automated detection data and the presence of multiple missing variables in the data, in order to optimize the model performance, the filling needs to be iteratively filled for each missing feature variable in turn, so the reduction of model features will greatly improve the computational efficiency of the model. When the patching effect is basically the same, choosing a feature subset after dimensionality reduction with fewer variables is more suitable for practical applications.
[0135] From the above description of the specific implementation method in combination with the accompanying drawings, it can be seen that the present invention divides the missing mode of rural road condition index data for the problem of random missing of road condition index data in the process of rural road automatic detection data collection and data cleaning; for different modes, a filling feature set is constructed according to the intrinsic correlation of diseases, the law of road surface decay, etc.; for the filling feature set, the Lasso regression algorithm is used to eliminate redundant variables to obtain the repair combination after dimensionality reduction; and based on the Stacking integrated model, the low-level rural road automatic detection index data is filled according to the repair combination after dimensionality reduction. The present invention realizes the repair of low-level rural road road condition index data, has high practical value and good effectiveness, meets the actual engineering application needs, substantially improves data quality, and provides solid data support for the technical status assessment, maintenance management and other work of low-level rural roads.
[0136] Embodiment 2:
[0137] The embodiment of the present invention discloses a rural highway road condition index data quality repair system based on Stacking integrated learning, including: a preprocessing module, which is used to perform abnormal cleaning on rural highway road condition index data and original collected data, and divide the missing mode of rural highway road condition index data, including source missing mode and sub-index missing mode; a filling feature set construction module, which is used to construct a filling feature set according to the inherent correlation of the disease and the road surface decay law for data whose missing mode is the source missing mode; for data whose missing mode is the sub-index missing mode, a filling feature set is constructed according to the road surface decay law; a feature set dimensionality reduction module, which is used to select variables for the constructed filling feature set using the Lasso regression algorithm, eliminate redundant variables, and obtain a repair combination after dimensionality reduction; a model training module, which is used to select the base learner of the Stacking integrated model, split the original data into a training set and a test set, and train each base learner; and a data filling module, which is used to fill the rural highway automatic detection index data based on the trained Stacking integrated model and the repair combination after dimensionality reduction. The specific implementation of each module refers to the above method embodiment, which will not be repeated.
[0138] Embodiment 3:
[0139] An embodiment of the present invention discloses a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the rural highway road condition index data quality repair method based on Stacking ensemble learning.
[0140] In this embodiment, the processor may be a central processing unit, or other general-purpose processors, digital signal processors, application-specific integrated circuits, readily available programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.
[0141] Those skilled in the art will appreciate that the disclosed content of the embodiments may be provided as methods, systems, or computer program products. Therefore, the present solution may adopt the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Moreover, the present solution may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program codes.
[0142] The present solution is described with reference to the flowchart and / or block diagram of the method and computer program product according to the embodiment of the present solution. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions; these computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0143] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0144] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0145] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0146] The above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.
Claims
1. A method for repairing rural road condition index data quality based on Stacking ensemble learning, characterized in that: The following steps are involved: (1) Perform anomaly cleaning on rural road condition index data and original collected data, and classify the missing patterns of rural road condition index data, including source missing patterns and sub-indicator missing patterns; (2) For data whose missing pattern is a source missing pattern, a filling feature set is constructed based on the intrinsic correlation of the disease and the law of pavement decay; for data whose missing pattern is a sub-indicator missing pattern, a filling feature set is constructed based on the law of pavement decay; (3) For the constructed filling feature set, the Lasso regression algorithm is used for variable selection, redundant variables are eliminated, and the repair combination after dimensionality reduction is obtained; (4) Select the base learner of the Stacking ensemble model, split the original data into a training set and a test set, and train each base learner; (5) Based on the trained Stacking ensemble model, the rural road automated inspection index data is filled according to the patch combination after dimensionality reduction.
2. The rural road condition index data quality repair method based on Stacking ensemble learning according to claim 1 is characterized in that: The rural highway road condition index data in step (1) include the pavement damage condition index PCI, the pavement ride quality index RQI and the pavement technical condition index PQI in previous years, wherein the overall index is PQI and the sub-indicators are PCI and RQI; the original collected data in step (1) are data used to calculate the rural highway road condition index, including the disease area data and the disease rate DR related to the pavement damage condition index PCI in previous years and the international roughness IRI related to the pavement ride quality index RQI.
3. The rural road condition index data quality repair method based on Stacking ensemble learning according to claim 1 is characterized in that: For data with source missing patterns, a repair method combining longitudinal and transverse repair is adopted, including: ① filling in the damaged areas based on the correlation between the diseases; ② repairing DR or PCI based on the correlation between the non-missing damaged area data and the disease rate DR or pavement damage condition index PCI; ③ filling in PCI, pavement ride quality index RQI or pavement technical condition index PQI data based on the temporal variation law of the indicator data itself; among them, PCI repair involves multivariate missing related to the damaged area, and the data are filled one by one starting from the variable with the lowest missing ratio; for data with sub-indicator missing patterns, a longitudinal repair method is adopted to fill in PCI, RQI or PQI data based on the temporal variation law of the indicator data itself.
4. The rural road condition index data quality repair method based on Stacking ensemble learning according to claim 1 is characterized in that: The implementation process of step (3) is as follows: (3-1) Standardize the data set; (3-2) Set the Lasso regression objective function as: Among them, β Lasso is the coefficient vector of Lasso regression, X j is the jth characteristic variable, p is the number of characteristic variables, Y is the observed value, β is the parameter vector to be estimated, β j is the parameter of the jth feature variable, λ is the penalty term coefficient, For penalty items; (3-3) Use the K-fold cross validation method to calculate the mean square error, and calculate the order in which each eigenvalue influencing factor enters the model and the changes in the proportion of the fitting coefficient value under different λ; (3-4) Eliminate the variables whose fitting coefficients are still 0 when the horizontal axis is 0, and the remaining variables are the repair combinations after dimensionality reduction.
5. The rural road condition index data quality repair method based on Stacking ensemble learning according to claim 1 is characterized in that: The base learner of the Stacking ensemble model described in step (4) includes KNN, and the filling step includes: (4-1-1) Sort the missing data items from low to high according to the missing ratio; (4-1-2) For the data items with the lowest missing proportion, the mean imputation method is used for initial filling; (4-1-3) The remaining data items with the lowest missing ratio to be repaired are taken as the prediction target, and the remaining variables are taken as influencing factors. The KNN model is trained using data records without missing values for filling; (4-1-4) The original data is randomly divided into K parts, one of which is selected as the training set each time, and the rest are the test sets; (4-1-5) Traverse all specified k values to train the KNN model, and repeat cross-validation K times for each k value; (4-1-6) Calculate the average of K cross-validation accuracy rates to obtain the model accuracy corresponding to the k value; (4-1-7) Compare the model accuracy corresponding to all k values, and obtain the optimal k value and the corresponding KNN model and the corresponding filling result; (4-1-8) Use the obtained filling results to update the filling matrix and fill the remaining variables in turn until all data are filled.
6. The rural road condition index data quality repair method based on Stacking ensemble learning according to claim 1 is characterized in that: The base learner of the Stacking ensemble model described in step (4) includes MissForest, and its filling steps include: (4-2-1) Sort the missing data items from low to high according to the missing ratio; (4-2-2) For the data items with the lowest missing proportion, the mean imputation method is used for initial filling; (4-2-3) The remaining data items with the lowest missing ratio to be repaired are taken as the prediction target, and the remaining variables are taken as influencing factors. The MissForest model is trained using data records without missing values for filling; (4-2-4) The original data is randomly divided into K parts, one of which is selected as the training set each time, and the rest are the test sets; (4-2-5) Calculate the average of K cross-validation accuracy rates to obtain the optimal MissForest model and the corresponding filling results; (4-2-6) Use the obtained filling results to update the filling matrix and fill the remaining variables in turn until all data are filled.
7. The rural road condition index data quality repair method based on Stacking ensemble learning according to claim 1 is characterized in that: The base learner of the Stacking ensemble model described in step (4) includes XGBoost, and the filling step includes: (4-3-1) Sort the missing data items from low to high according to the missing ratio; (4-3-2) For the data items with the lowest missing proportion, the mean imputation method is used for initial filling; (4-3-3) The remaining data items with the lowest missing ratio to be repaired are taken as the prediction target, and the remaining variables are taken as influencing factors. The XGBoost model is trained using data records without missing values for filling; (4-3-4) The original data is randomly divided into K parts, one of which is selected as the training set each time, and the rest are the test sets; (4-3-5) For the preset learning rate learning_rate and the maximum depth of each tree max_depth, cross validation is used to train the XGBoost model and tune the hyperparameters; (4-3-6) Calculate the average of K cross-validation accuracy rates to obtain the model accuracy corresponding to each learning rate and the maximum depth of each tree; (4-3-7) Compare the accuracy of all models to obtain the optimal learning rate, the maximum depth of each tree and the corresponding XGBoost model, as well as the corresponding filling results; (4-3-8) Use the obtained filling results to update the filling matrix and fill the remaining variables in turn until all data are filled.
8. The rural road condition index data quality repair method based on Stacking ensemble learning according to claim 1 is characterized in that: The implementation process of step (5) is as follows: (5-1) The prediction results of KNN, MissForest, and XGBoost are merged horizontally and used as new training sets to input into the secondary model for training; (5-2) Use the trained Stacking ensemble model to complete the rural road automated inspection index data filling based on the patch combination after dimensionality reduction.
9. A rural road condition index data quality repair system based on Stacking ensemble learning, characterized in that: include: A preprocessing module is used to perform anomaly cleaning on rural highway road condition index data and original collected data, and to classify missing patterns of rural highway road condition index data, including source missing patterns and sub-indicator missing patterns; The filling feature set construction module is used to construct a filling feature set for data whose missing pattern is a source missing pattern according to the inherent correlation of the disease and the law of pavement decay; for data whose missing pattern is a sub-indicator missing pattern, a filling feature set is constructed according to the law of pavement decay; The feature set dimensionality reduction module is used to select variables for the constructed filling feature set using the Lasso regression algorithm, eliminate redundant variables, and obtain the repair combination after dimensionality reduction; The model training module is used to select the base learners of the Stacking ensemble model, split the original data into training sets and test sets, and train each base learner; And the data filling module is used to fill the rural road automatic detection index data based on the trained Stacking integration model and the patch combination after dimensionality reduction.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by the processor, the steps of the rural road condition index data quality repair method based on Stacking ensemble learning according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Traffic flow data restoration method based on missing judgment of traffic flow data acquisition equipment
CN117633447A
Abnormity identification and restoration method and system for unbalanced data
CN117743938A
Wind turbine generator set SCADA data intelligent restoration method
CN117786529A
Diffused large B lymphoma curative effect prediction method based on automatic machine learning model
CN117153415A
Steel industry carbon emission prediction method and system based on Bayesian optimization
CN117709524A
Cited By
Feed raw material available nutrient data enhancement method, system, equipment and medium
CN119202559A
A method, system, device and medium for enhancing effective nutrient data of feed raw materials
CN119202559B
