Expressway section carbon emission estimation method based on XGBoost model

Through the method based on the XGBoost model, combined with vehicle survey data and simulation, the problem of high cost and poor feasibility in estimating carbon emissions on highway sections is solved, and accurate and reliable estimation of carbon emissions is achieved, especially in As the penetration rate of electric vehicles increases, the indirect emissions of electric vehicles are taken into account, and it is suitable for detailed management of carbon emissions in the transportation industry.

CN118780504AInactive Publication Date: 2024-10-15SOUTH CHINA UNIV OF TECH

Patent Information

Application Number
CN202411262991.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology is costly and has poor feasibility in estimating carbon emissions on highway sections, making it difficult to achieve accurate and reliable carbon emissions measurement.

Method used

A method based on the XGBoost model is used, combined with special survey data on operating vehicles, to derive localized carbon emission factors for subdivided models, taking into account factors such as the proportion of electric vehicles, the proportion of trucks, traffic volume, slope, expected speed of trucks, and speed variance. The simulation method simulates the total carbon emissions under specific traffic scenarios, builds a training data set, and optimizes model parameters to achieve road section carbon emission estimation.

Benefits of technology

It achieves accurate and reliable estimation of carbon emissions on highway sections, reduces estimation costs, and improves estimation accuracy and reliability. In particular, it takes into account the indirect emissions of electric vehicles and is suitable for carbon emissions in the transportation industry. Detailed management of emissions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780504A_ABST
    Figure CN118780504A_ABST
Patent Text Reader

Abstract

The invention is suitable for the field of traffic transportation environment pollution, and provides a highway section carbon emission estimation method based on an XGBoost model, which comprises the following steps: S1, introducing macroscopic characteristics, combining with toll road vehicle type classification standards of 1-4 types of passenger cars and 1-6 types of trucks, calculating to obtain average energy consumption of different vehicle types, converting the average energy consumption into average carbon emission of the different vehicle types, and calculating the average carbon emission of the different vehicle types; obtaining a vehicle-type-divided carbon emission factor with localization characteristics; s2, in combination with microscopic characteristics, screening out a partially representative simulation parameter numerical value combination, simulating and acquiring data such as vehicle-type-divided energy consumption of a simulation road section, calculating the carbon emission of the road section based on vehicle-type-divided carbon emission factors, and correcting the carbon emission to form a training data set required by the model; and S3, performing model training and parameter tuning on the XGBoost model by using the training data set, and performing carbon emission estimation on the highway section. The invention provides a simple, feasible and accurate method framework for measuring and calculating the carbon emission of the highway section level.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of transportation environmental pollution, and in particular relates to a method for estimating carbon emissions of highway sections based on an XGBoost model. Background Art

[0002] Transportation is one of the important sources of global carbon emissions, and its related environmental pollution problems are mainly reflected in many aspects. First, when vehicles such as cars, airplanes, and ships burn fossil fuels, they release a large amount of carbon dioxide (CO2), which leads to an increase in greenhouse gas concentrations, thereby exacerbating global warming. In addition, transportation also emits nitrogen oxides (NOx), hydrocarbons (HC), and particulate matter (PM). These pollutants not only have a serious impact on air quality, but may also cause respiratory and cardiovascular diseases, endangering human health.

[0003] Road transport is the focus of emission reduction work in the transportation industry. Carbon emission estimation work is costly and has poor feasibility. Based on this difficulty, providing a simple and feasible method framework to achieve an ideal level of accuracy and reliability in road carbon emission estimation is an urgent research problem to be solved. Summary of the invention

[0004] The purpose of the present invention is to provide a method for estimating carbon emissions of highway sections based on the XGBoost model, aiming to solve the technical problems existing in the prior art identified in the background technology.

[0005] The present invention combines the special survey data of running vehicles to derive the vehicle carbon emission factors with localized characteristics of segmented models, considers the relevant influencing factors of electric vehicle proportion, truck proportion, traffic volume, slope, expected speed of trucks, mean speed of road section vehicles and speed variance, and simulates the total carbon emissions of road sections under specific traffic scenarios through simulation means to construct a data set. Combined with the machine learning XGBoost model, a highway section carbon emission estimation model is constructed and trained, thereby achieving a precise and accurate section carbon emission estimation effect.

[0006] The present invention is implemented as follows: a method for estimating carbon emissions of highway sections based on an XGBoost model, the method comprising:

[0007] S1. Classify vehicle types, collect highway toll flow data and special survey data of passenger and freight companies in the study area, and calculate the carbon emission factors of fuel vehicles by vehicle type;

[0008] S2. Determine the proportion and characteristic variables of different vehicle types in traffic operation, and use the determined characteristic variables to simulate traffic operation under different conditions through a simulation model to generate traffic data, and use the traffic data to calculate the carbon emissions of the road section as the label value of the training data set, and use the average fuel consumption per 100 kilometers of different vehicle types in the simulation to correct the carbon emissions of road sections under different slopes;

[0009] S3. Train the XGBoost model based on machine learning, set the initial model parameters, input the obtained training data set into the model in sequence for fitting and feedback the root mean square error between the model prediction value and the label value, and take minimizing the root mean square error as the optimization goal. Use the parameter optimizer to tune the model parameters and obtain the road section carbon emission estimation model.

[0010] As a further solution of the present invention, the classification of vehicle types described in S1 is divided into 1-4 passenger cars and 1-6 trucks according to the "Vehicle Type Classification for Toll Road Vehicle Tolls" issued by the Ministry of Transport.

[0011] As a further solution of the present invention, the method for calculating the carbon emission factor of fuel vehicles by vehicle type described in S1 includes:

[0012] Calculate the average mileage of a single trip on the highway for the i-th type of vehicle using fuel j : ; Where N is the total number of vehicles of type i using fuel j, is the mileage of the nth vehicle in the i-th type of vehicle using fuel j; Refer to the theoretical energy consumption per 100 kilometers of the vehicle's factory model Calculate the theoretical average energy consumption per 100 kilometers for each type of vehicle, and compare it with the energy consumption correction coefficient of each type of vehicle calibrated with the survey data Multiply them to get the corrected average energy consumption per 100 kilometers for each type of vehicle. , specifically: ; The number of trips of various types of vehicles on the known highway , average mileage and average energy consumption per 100 km Used to calculate the total fuel consumption of various types of vehicles on highways , and according to the conversion coefficient standard of fuel type and standard coal Convert standard coal to obtain the carbon emissions of the i-th type of vehicle , specifically: ; ; Calculate the carbon emission factor of each vehicle type : ; ; ; in, Respectively represent 1 to 4 types of passenger cars, Respectively represent trucks of categories 1 to 6. is the contribution of the specific model of the i-th type of vehicle to carbon emissions, is the contribution of the mileage of the i-th type of vehicle to carbon emissions, and They are and The weight of K is the specific model number of the i-th type of vehicle. is the proportion of vehicles of specific model k in the i-th type of vehicle, is the average carbon emission of the specific model k in the i-th type of vehicle, J is the number of vehicles in the i-th type of vehicle, is the mileage increment of vehicle j of type i, It is the average additional carbon emission per unit mileage of vehicle j of type i.

[0013] As a further solution of the present invention, in S2, the characteristic variables include:

[0014] The proportion of electric vehicles, the proportion of trucks, traffic volume, slope, expected speed of trucks, mean speed of vehicles on the road section, and speed variance.

[0015] As a further solution of the present invention, the determining of the proportion of different vehicle types in traffic operation described in S2 is specifically: setting the proportion of different vehicle types in traffic operation according to the statistics of expressway toll flow data;

[0016] The specific method for determining the characteristic variables is:

[0017] For the proportion of electric vehicles, the proportion of trucks, traffic volume, slope and expected speed of trucks, a value range is set for each variable, and the variable value combination is screened out through the orthogonal experimental method.

[0018] As a further solution of the present invention, in S3, the model training uses the training data set constructed by S2. During the training process, three model parameters, namely the maximum number of generated trees, the learning rate and the maximum depth of the tree, are tuned. The goal is to minimize the root mean square error between the model prediction value and the true label value, and the acceptable value range of the parameter optimization is set before using the parameter optimizer.

[0019] The beneficial effects of the present invention are:

[0020] 1. The present invention determines the localized carbon emission factors for different vehicle types based on the special survey data to guide the calculation of vehicle carbon emissions; and constructs a nonlinear relationship expression model between the total carbon emissions of a road section and the traffic operation conditions and characteristics of the road section. Therefore, the model can infer a relatively accurate carbon emission amount based on the traffic information characteristics of the road section.

[0021] 2. The road section carbon emission estimation proposed in the present invention actively takes into account the indirect carbon emissions of electric vehicles, which cannot be ignored in the current situation where the penetration rate of electric vehicles is constantly increasing while the source of electricity still mainly relies on thermal power generation.

[0022] 3. The solution of the present invention can better complete the task of estimating carbon emissions on road sections with the help of a small amount of statistical data, simulation and machine learning methods. It is a simple, feasible and reliable technical solution, which will help the transportation industry to develop more refined carbon emissions estimation at the highway section level. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A flow chart of the solution provided by the present invention; Figure 2 A schematic diagram of the proportion of traffic types on a road section provided by the present invention; Figure 3 A schematic diagram of a training data set sample provided by the present invention; Figure 4 This is a schematic diagram of the carbon emission estimation effect of a road section provided by the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0025] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.

[0026] like Figure 1 As shown, a method for estimating carbon emissions of a highway section based on an XGBoost model comprises:

[0027] S1. Classify vehicle types, collect highway toll flow data and special survey data of passenger and freight companies in the study area, and calculate the carbon emission factors of fuel vehicles by vehicle type;

[0028] Specific:

[0029] According to the "Vehicle Type Classification for Toll Road Vehicle Tolls" standard, vehicle types are divided into 1-4 passenger cars and 1-6 trucks, for a total of 10 vehicle types.

[0030] The data on highway toll collection and special surveys of passenger and freight transport companies in the study area were collected, and the carbon emission factors of fuel vehicles were calculated mainly by using the statistical data of vehicle models, fuel types, mileage, and fuel consumption per 100 kilometers. In addition, the carbon emission factors of electric vehicles were taken according to the conclusions of domestic research.

[0031] S2. Determine the proportion and characteristic variables of different vehicle types in traffic operation, and use the determined characteristic variables to simulate traffic operation under different conditions through a simulation model to generate traffic data, and use the traffic data to calculate the carbon emissions of the road section as the label value of the training data set, and use the average fuel consumption per 100 kilometers of different vehicle types in the simulation to correct the carbon emissions of road sections under different slopes;

[0032] Specific:

[0033] According to the highway toll flow data, the proportion of different types of vehicles in traffic operation is determined, that is, the proportion of each type of passenger car in the total number of passenger cars and the proportion of each type of truck in the total number of trucks. For examples, see the attached Figure 2 .

[0034] The characteristic variables determined include the proportion of electric vehicles, the proportion of trucks, traffic volume, slope, expected speed of trucks, mean speed of vehicles on the road section, and speed variance. The first five characteristic variables are used as simulation parameter inputs, and the last two characteristic variables are obtained by the driving speed statistics of each vehicle in the simulation results.

[0035] For the first five characteristic variables, a value range needs to be selected. In this embodiment, according to relevant reference criteria, the proportion of electric vehicles is 4% to 20%, the proportion of trucks is 5% to 50%, the traffic volume is 500 to 5500 vehicles / h, the slope is 0%, 1%, 2% and 3% for uphill / downhill, and the expected speed of trucks is 50 to 65 km / h. Some representative variable value combinations are screened out through the orthogonal experimental method, and they are input into the simulator in turn for simulation. In the simulation, the speeds of different types of vehicles are set to obey the normal distribution, that is, the speeds fluctuate around a certain expected value to meet the actual traffic operation conditions.

[0036] The carbon emissions of the road section are calculated as the label value of the data set, where the direct emissions of fuel vehicles are obtained by multiplying the simulated vehicle mileage and the fuel carbon emission factor of the vehicle model, and the indirect emissions of electric vehicles are obtained by multiplying the simulated vehicle mileage and the electric vehicle carbon emission factor. The label value of the road section carbon emissions is the sum of the direct emissions of fuel vehicles and the indirect emissions of electric vehicles.

[0037] Attach Figure 2 The proportion of different vehicle types in the simulation is used as the weight, and the carbon emissions of road sections with different slopes are weighted and corrected by the average fuel consumption of different vehicle types in the simulation. In summary, a high-quality training data set composed of feature variables and label values ​​is obtained based on simulation technology. The example results are shown in the attached figure. Figure 3 .

[0038] S3. Train the XGBoost model based on machine learning, set the initial model parameters, input the obtained training data set into the model in sequence for fitting and feedback the root mean square error between the model prediction value and the label value, and take minimizing the root mean square error as the optimization goal. Use the parameter optimizer to tune the model parameters and obtain the road section carbon emission estimation model.

[0039] Specific:

[0040] The XGBoost model based on machine learning is used to achieve the task of road section carbon emission estimation. The input of the model training is the feature variable, and the output is the label value. The three key model parameters that need to be determined are the maximum number of trees generated, the learning rate, and the maximum depth of the tree. First, the initial model parameters are set, and the obtained training data sets are input into the model in turn for fitting and the root mean square error between the model prediction value and the label value is fed back. At the same time, the root mean square error is minimized as the optimization goal, and the model parameters are tuned through the Optuna optimizer. Finally, a road section carbon emission estimation model with good prediction performance and generalization ability is realized. The road section carbon emission estimation model can be used to estimate the road section carbon emission. The estimation effect is as follows: Figure 4 shown.

[0041] In the embodiment of the present invention, the vehicle types are classified as described in S1, and the vehicle types are divided into 1-4 categories of passenger cars and 1-6 categories of trucks.

[0042] In the embodiment of the present invention, the method for calculating the carbon emission factor of fuel vehicles by vehicle type described in S1 includes:

[0043] Calculate the average mileage of a single trip on the highway for the i-th type of vehicle using fuel j : ; Where N is the total number of vehicles of type i using fuel j, is the mileage of the nth vehicle in the i-th type of vehicle using fuel j; Refer to the theoretical energy consumption per 100 kilometers of the vehicle's factory model Calculate the theoretical average energy consumption per 100 kilometers for each type of vehicle, and compare it with the energy consumption correction coefficient of each type of vehicle calibrated with the survey data Multiply them to get the corrected average energy consumption per 100 kilometers for each type of vehicle. , specifically: ; The number of trips of various types of vehicles on the known highway , average mileage and average energy consumption per 100 km Used to calculate the total fuel consumption of various types of vehicles on highways , and according to the conversion coefficient standard of fuel type and standard coal Convert standard coal to obtain the carbon emissions of the i-th type of vehicle , specifically: ; ; Calculate the carbon emission factor of each vehicle type : ; ; ; in, Respectively represent 1 to 4 types of passenger cars, Respectively represent trucks of categories 1 to 6. is the contribution of the specific model of the i-th type of vehicle to carbon emissions, is the contribution of the mileage of the i-th type of vehicle to carbon emissions, and They are and The weight of K is the specific model number of the i-th type of vehicle. is the proportion of vehicles of specific model k in the i-th type of vehicle, is the average carbon emission of the specific model k in the i-th type of vehicle, J is the number of vehicles in the i-th type of vehicle, is the mileage increment of vehicle j of type i, It is the average additional carbon emission per unit mileage of vehicle j of type i.

[0044] In this embodiment of the present invention, in S2, the characteristic variables include:

[0045] The proportion of electric vehicles, the proportion of trucks, traffic volume, slope, expected speed of trucks, mean speed of vehicles on the road section, and speed variance.

[0046] In the embodiment of the present invention, the determination of the proportion of different vehicle types in traffic operation in S2 is specifically as follows: setting the proportion of different vehicle types in traffic operation according to the statistics of expressway toll flow data;

[0047] The specific method for determining the characteristic variables is:

[0048] For the proportion of electric vehicles, the proportion of trucks, traffic volume, slope and expected speed of trucks, a value range is set for each variable, and the variable value combination is screened out through the orthogonal experimental method.

[0049] In an embodiment of the present invention, in S3, the model training uses the training data set constructed by S2. During the training process, three model parameters, namely the maximum number of generated trees, the learning rate and the maximum depth of the tree, are tuned. The goal is to minimize the root mean square error between the model prediction value and the true label value, and the range of possible values ​​for parameter optimization is set before using the parameter optimizer.

[0050] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0051] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0052] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0053] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

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

Claims

1. A method for estimating carbon emissions of highway sections based on the XGBoost model, characterized in that: The method comprises: S1. Classify vehicle types, collect highway toll flow data and special survey data of passenger and freight companies in the study area, and calculate the carbon emission factors of fuel vehicles by vehicle type; S2. Determine the proportion and characteristic variables of different vehicle types in traffic operation, and use the determined characteristic variables to simulate traffic operation under different conditions through a simulation model to generate traffic data, and use the traffic data to calculate the carbon emissions of the road section as the label value of the training data set, and use the average fuel consumption per 100 kilometers of different vehicle types in the simulation to correct the carbon emissions of road sections under different slopes; S3. Train the XGBoost model based on machine learning, set the initial model parameters, input the obtained training data set into the model in sequence for fitting and feedback the root mean square error between the model prediction value and the label value, and take minimizing the root mean square error as the optimization goal. Use the parameter optimizer to tune the model parameters and obtain the road section carbon emission estimation model.

2. The method according to claim 1, characterized in that The vehicle types are classified as described in S1, and the vehicle types are divided into categories 1-4 for passenger cars and categories 1-6 for trucks.

3. The method according to claim 2, characterized in that The calculation method of carbon emission factors for fuel vehicles by model described in S1 includes: Calculate the average mileage of a single trip on the highway for the i-th type of vehicle using fuel j : ; Where N is the total number of vehicles of type i using fuel j, is the mileage of the nth vehicle in the i-th type of vehicle using fuel j; Refer to the theoretical energy consumption per 100 kilometers of the vehicle's factory model Calculate the theoretical average energy consumption per 100 kilometers for each type of vehicle, and compare it with the energy consumption correction coefficient of each type of vehicle calibrated with the survey data Multiply them to get the corrected average energy consumption per 100 kilometers for each type of vehicle. , specifically: ; The number of trips of various types of vehicles on the known highway , average mileage and average energy consumption per 100 km Used to calculate the total fuel consumption of various types of vehicles on highways , and according to the conversion coefficient standard of fuel type and standard coal Convert standard coal to obtain the carbon emissions of the i-th type of vehicle , specifically: ; ; Calculate the carbon emission factor of each vehicle type : ; ; ; in, Respectively represent 1 to 4 types of passenger cars, Respectively represent trucks of categories 1 to 6. is the contribution of the specific model of the i-th type of vehicle to carbon emissions, is the contribution of the mileage of the i-th type of vehicle to carbon emissions, and They are and The weight of K is the specific model number of the i-th type of vehicle. is the proportion of vehicles of specific model k in the i-th type of vehicle, is the average carbon emission of the specific model k in the i-th type of vehicle, J is the number of vehicles in the i-th type of vehicle, is the mileage increment of vehicle j of type i, It is the average additional carbon emission per unit mileage of vehicle j of type i.

4. The method according to claim 1, characterized in that: In S2, the characteristic variables include: The proportion of electric vehicles, the proportion of trucks, traffic volume, slope, expected speed of trucks, mean speed of vehicles on the road section, and speed variance.

5. The method according to claim 4, characterized in that Determining the proportion of different vehicle types in traffic operation as described in S2 is specifically: setting the proportion of different vehicle types in traffic operation according to the statistics of expressway toll flow data; The specific method for determining the characteristic variables is: For the proportion of electric vehicles, the proportion of trucks, traffic volume, slope and expected speed of trucks, a value range is set for each variable, and the variable value combination is screened out through the orthogonal experimental method.

6. The method according to claim 1, characterized in that In S3, the model training uses the training data set constructed in S2. During the training process, the three model parameters of the maximum number of generated trees, the learning rate, and the maximum depth of the tree are tuned. The goal is to minimize the root mean square error between the model prediction value and the true label value, and set the range of possible values ​​for parameter optimization before using the parameter optimizer.

Citation Information

Patent Citations

  • Highway vehicle emission-plant absorption carbon neutralization method

    CN115936292A

  • Method for dynamically measuring and calculating carbon emission in whole vehicle driving process based on trajectory data

    CN117893036A

  • Road section carbon emission measuring and calculating method and device based on traffic flow characteristics and medium

    CN118097930A

Cited By

  • Power dispatching method, device and equipment, storage medium and product

    CN119543158A

  • A power dispatching method, device, equipment, storage medium and product

    CN119543158B

  • A method, device, computer equipment and readable storage medium for predicting carbon emissions from inland waterways

    CN119740942A

  • Expressway carbon emission energy consumption abnormity monitoring optimization system

    CN120932470A

  • Method for calculating total emission amount of motor vehicles on highway based on economic and social indexes

    CN121092842A