CN105910665B - Oil consumption measuring method and device based on onboard diagnostic system data - Google Patents

Oil consumption measuring method and device based on onboard diagnostic system data Download PDF

Info

Publication number
CN105910665B
CN105910665B CN201610225575.2A CN201610225575A CN105910665B CN 105910665 B CN105910665 B CN 105910665B CN 201610225575 A CN201610225575 A CN 201610225575A CN 105910665 B CN105910665 B CN 105910665B
Authority
CN
China
Prior art keywords
oil
time point
mileage
travel
stroke
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610225575.2A
Other languages
Chinese (zh)
Other versions
CN105910665A (en
Inventor
何秋果
李旭
耿文童
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ronglian Technology Group Co Ltd
Original Assignee
UNITED ELECTRONICS CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by UNITED ELECTRONICS CO Ltd filed Critical UNITED ELECTRONICS CO Ltd
Priority to CN201610225575.2A priority Critical patent/CN105910665B/en
Publication of CN105910665A publication Critical patent/CN105910665A/en
Application granted granted Critical
Publication of CN105910665B publication Critical patent/CN105910665B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F9/00Measuring volume flow relative to another variable, e.g. of liquid fuel for an engine
    • G01F9/001Measuring volume flow relative to another variable, e.g. of liquid fuel for an engine with electric, electro-mechanic or electronic means

Landscapes

  • Physics & Mathematics (AREA)
  • Fluid Mechanics (AREA)
  • General Physics & Mathematics (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)
  • Measuring Volume Flow (AREA)

Abstract

The invention discloses a kind of oil consumption measuring methods and device based on onboard diagnostic system data, comprising: with prefixed time interval continuous acquisition OBD data, and the time point for recording acquisition OBD data is several acquisition times;It determines several refueling time sections and several refueling time points, determines several segments invalid data;It calculates and each described substitutes the invalid data accordingly with the Fuel Oil Remaining variation tendency of oily section and by calculated result;Calculate the Fuel Oil Remaining variation tendency of each trip segment;Each trip segment is subjected to splicing optimization, and further obtains the optimization Fuel Oil Remaining of any acquisition time in each trip segment;It is calculated according to the optimization Fuel Oil Remaining and generates instantaneous oil consumption, accumulation oil consumption, oiling oil mass and oil consumption statistics and shown to user;The present invention can provide more accurate, practical fuel consumption data for user, help user to improve the driving habit of user and then save fuel cost.

Description

Fuel consumption measuring and calculating method and device based on vehicle-mounted diagnosis system data
Technical Field
The invention relates to the technical field of vehicle data processing, in particular to a method and a device for measuring and calculating oil consumption based on data of a vehicle-mounted diagnosis system.
Background
OBD is an abbreviation for a proper noun, which is known as On Board Diagnostics, and means in Chinese: an on-board diagnostic system. The system can monitor the working conditions of the engine electric control system and other functional modules of the vehicle in real time in the running process of the vehicle, if the working condition is found to be abnormal, the specific fault is judged according to a specific algorithm and is stored in a memory in the system in the form of a diagnostic fault code. Useful information obtained after the system self-diagnosis can provide help for the maintenance and the repair of the vehicle, and maintenance personnel can read the fault code by using a special instrument of an automobile original factory, so that the fault can be quickly positioned, the vehicle can be conveniently repaired, and the time of manual diagnosis is shortened.
The conventional OBD can only provide simple vehicle condition data such as odometer mileage, residual oil quantity, vehicle speed, engine speed and the like for a user, but the data has a very limited effect on improving the driving habits of the user and further saving the fuel cost of the user.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for measuring and calculating fuel consumption based on vehicle-mounted diagnostic system data, which can provide more accurate and practical fuel consumption data for a user, help the user to improve the driving habits of the user, and further save fuel cost.
Based on the aim, the invention provides a fuel consumption measuring and calculating method based on vehicle-mounted diagnosis system data, which comprises the following steps:
continuously acquiring OBD data at preset time intervals, and recording the time point of acquiring the OBD data as a plurality of acquisition time points;
determining a plurality of refueling time periods according to the average remaining oil quantity difference value before and after each collection time point, and determining the collection time point with the maximum oil quantity increment in each refueling time period as a plurality of refueling time points; dividing all the acquired OBD data into a plurality of oil consumption sections according to the plurality of oiling time points, and determining a plurality of sections of invalid data by counting the occurrence frequency of the maximum value of the residual oil quantity in the OBD data before and after each acquisition time point for each oil consumption section; calculating the trend of the change of the residual oil quantity of each oil consumption section and correspondingly replacing the invalid data with the calculation result;
dividing all the acquired OBD data into a plurality of travel sections according to ignition time points in the OBD data, and calculating the remaining oil quantity change trend of each travel section; splicing and optimizing each stroke section, and further obtaining the optimized residual oil quantity of any acquisition time point in each stroke section;
and calculating and generating instantaneous oil consumption, accumulated oil consumption, oil filling amount and oil consumption statistics according to the optimized residual oil amount, and displaying the statistics to a user.
Preferably, the method further comprises: calculating the driving mileage delta S between any two acquisition time points based on the GPS positioning information in the OBD datatThe calculation formula is as follows:
wherein, Latt-1、Latt、Lont-1、LontLatitude and longitude, Δ S, of two successive points in time t-1 and t, respectivelytThe distance of the GPS running between the time point t-1 and the time point t, and R is the radius of the earth.
Preferably, the preset time interval is 10 s;
the step of determining a plurality of refueling time periods according to the average remaining fuel quantity difference before and after each collection time point comprises the following steps:
each is comparedAverage remaining oil quantity difference values of 2 minutes before and after the acquisition time point, if the average remaining oil quantity difference value is greater than a threshold value delta FmAnd judging that the total time period of 4 minutes before and after the acquisition time point is the refueling time period.
Preferably, for each oil consumption segment, the step of determining a plurality of segments of invalid data by counting the occurrence frequency of the maximum value of the remaining oil amount in the OBD data before and after each acquisition time point includes:
calculating the occurrence frequency of the maximum value of the residual oil quantity in 20 collection time points before and after each collection time point in one oil consumption section, and if the occurrence frequency is equal to 20 times, judging that invalid data exists in the oil consumption section;
the data of the first 75% of the oil field judged to have invalid data is regarded as invalid data.
Preferably, the step of calculating the trend of the remaining oil amount of each of the oil consumption sections and correspondingly replacing the invalid data with the calculation result comprises the following steps:
subtracting the accumulated mileage during last refueling from the accumulated mileage at each acquisition time point in the oil consumption section to obtain the refueling driving mileage:
wherein,represents the accumulated mileage at the acquisition time point t after the kth fueling,represents the accumulated mileage at the time of the kth fueling,representing the refueling driving mileage at the time point t after the kth refueling;
and performing linear regression on the residual oil quantity in the oil consumption section on the oil filling driving mileage to obtain an equation:
wherein,representing the remaining fuel amount at the acquisition time point t after the kth fueling,indicating the remaining amount of fuel after the kth fueling,representing the amount of oil consumed per kilometer on average,represents the residual of the regression fit;
obtaining the average oil consumption level after the oil filling and the remaining oil mass fitting value of each oil filling driving mileage:
and replacing the invalid data by the calculated fitting value of the residual oil quantity of each refueling driving mileage correspondingly.
Preferably, after the step of segmenting all the acquired OBD data into a plurality of travel segments according to the ignition time point in the OBD data, the method further includes:
and calculating the travel mileage of each travel section, and merging all the travel sections with the travel mileage less than 30km with the adjacent travel sections until the travel mileage of all the travel sections is more than 30 km.
Preferably, the step of calculating the trend of the remaining oil amount change of each of the stroke sections includes:
calculating the travel mileage:
wherein,represents the accumulated mileage at the acquisition time point t in the nth trip segment,indicating the accumulated mileage at the beginning of the nth trip segment,representing the travel mileage at the acquisition time point t in the nth travel segment;
and performing linear regression on the residual oil quantity in the stroke section to the stroke driving mileage to obtain an equation:
wherein,representing the remaining oil amount at the acquisition time point t in the nth stroke segment,indicating the amount of oil remaining at the beginning of the nth stroke segment,representing the amount of oil consumed per kilometer on average,represents the residual of the regression fit;
the fitted value of remaining oil amount at the end of the stroke sectionComprises the following steps:
wherein,is the mileage traveled at the end of the trip segment.
Preferably, the step of optimizing the splicing of each stroke section and further obtaining the optimized remaining oil amount at any acquisition time point in each stroke section includes:
weighting the residual oil quantity at the connecting point of two adjacent stroke sections according to the driving mileage of the two stroke sections to smoothly connect the residual oil quantity of the two stroke sections, namely the residual oil quantity at the end of the (n-1) th stroke sectionAnd the remaining oil amount at the beginning of the nth strokeComprises the following steps:
wherein,the driving mileage of the (n-1) th trip segment and the (n) th trip segment respectively,fitting a value for the remaining oil volume at the end of the (n-1) th stroke segment,fitting a value for the remaining oil volume at the beginning of the nth stroke segment;
for each spliced and optimized travel section, calculating and optimizing the residual oil quantity according to the driving mileage of the acquisition time point, wherein the acquisition time point in the nth travel sectionOptimized residual oil amountComprises the following steps:
wherein,the amount of oil remaining at the beginning of the nth stroke,the remaining amount of oil at the end of the nth stroke segment,is the mileage traveled for the nth trip segment,for collecting time points in the nth stroke segmentThe trip mileage of (1).
Preferably, after obtaining the optimized remaining oil amount at any collection time point in each stroke section, the method further comprises the following steps:
the accumulated mileage m in one travel segmentiAnd distributing the consumed oil quantity to each acquisition time point according to the rotating speed of each acquisition time point, namely:
wherein,rijrepresents the accumulated mileage as miThe optimized residual oil quantity and the rotating speed at the jth time point of the time, wherein n is the accumulated mileage of miThe number of the collection time points of (a),represents a mileage of mi、mi+1The remaining oil amount is calculated according to the mileage.
Preferably, in the step of calculating and generating the instantaneous oil consumption, the accumulated oil consumption, the oil filling amount and the oil consumption statistics according to the optimized remaining oil amount:
the instantaneous oil consumption is as follows: and obtaining the oil consumption in the time period by adopting the difference between the two adjacent optimized residual oil quantities, namely the instantaneous oil consumption in 10s, namely the instantaneous oil consumption at the acquisition time point t is as follows:
the accumulated oil consumption is as follows: and accumulating the instantaneous oil consumption before each acquisition time point to obtain the accumulated oil consumption at the moment:
the oiling oil quantity is as follows: the optimized residual oil quantity before and after the oiling time point is differed to obtain the oiling oil quantity;
the oil consumption is counted as: and extracting data recorded every day according to time data in the OBD data, counting the driving mileage and the oil consumption of each day, and calculating the average hundred kilometers oil consumption of the vehicle on the day.
On the other hand, the invention also provides a fuel consumption measuring and calculating device based on the data of the vehicle-mounted diagnosis system, which comprises the following components:
the acquisition module is used for continuously acquiring the OBD data at preset time intervals and recording the time point of acquiring the OBD data as a plurality of acquisition time points;
the optimization module is used for determining a plurality of refueling time periods according to the average residual oil quantity difference value before and after each collection time point, and determining the collection time point with the maximum oil quantity increment in each refueling time period as a plurality of refueling time points; dividing all the acquired OBD data into a plurality of oil consumption sections according to the plurality of oiling time points, and determining a plurality of sections of invalid data by counting the occurrence frequency of the maximum value of the residual oil quantity in the OBD data before and after each acquisition time point for each oil consumption section; calculating the trend of the change of the residual oil quantity of each oil consumption section and correspondingly replacing the invalid data with the calculation result;
the calculation module is used for dividing all the acquired OBD data into a plurality of travel sections according to the ignition time point in the OBD data and calculating the change trend of the residual oil quantity of each travel section; splicing and optimizing each stroke section, and further obtaining the optimized residual oil quantity of any acquisition time point in each stroke section;
and the generating module is used for calculating and generating instantaneous oil consumption, accumulated oil consumption, oil filling quantity and oil consumption statistics according to the optimized residual oil quantity and displaying the statistics to a user.
Preferably, the optimization module and the calculation module are both further configured to: calculating any two based on the GPS positioning information in the OBD dataThe distance Δ S between the acquisition time pointstThe calculation formula is as follows:
wherein, Latt-1、Latt、Lont-1、LontLatitude and longitude, Δ S, of two successive points in time t-1 and t, respectivelytThe distance of the GPS running between the time point t-1 and the time point t, and R is the radius of the earth.
Preferably, the preset time interval is 10 s; the optimization module is further to: comparing the average residual oil quantity difference of 2 minutes before and after each acquisition time point, and if the average residual oil quantity difference is greater than a threshold value delta FmAnd judging that the total time period of 4 minutes before and after the acquisition time point is the refueling time period.
Preferably, the optimization module is further configured to: calculating the occurrence frequency of the maximum value of the residual oil quantity in 20 collection time points before and after each collection time point in one oil consumption section, and if the occurrence frequency is more than or equal to 20 times, judging that invalid data exists in the oil consumption section; the data of the first 75% of the oil field judged to have invalid data is regarded as invalid data.
Preferably, the optimization module is further configured to: subtracting the accumulated mileage during last refueling from the accumulated mileage at each acquisition time point in the oil consumption section to obtain the refueling driving mileage:
wherein,represents the accumulated mileage at the acquisition time point t after the kth fueling,represents the accumulated mileage at the time of the kth fueling,representing the refueling driving mileage at the time point t after the kth refueling;
and performing linear regression on the residual oil quantity in the oil consumption section on the oil filling driving mileage to obtain an equation:
wherein,representing the remaining fuel amount at the acquisition time point t after the kth fueling,indicating the remaining amount of fuel after the kth fueling,representing the amount of oil consumed per kilometer on average,represents the residual of the regression fit;
obtaining the average oil consumption level after the oil filling and the remaining oil mass fitting value of each oil filling driving mileage:
and replacing the invalid data by the calculated fitting value of the residual oil quantity of each refueling driving mileage correspondingly.
Preferably, the calculation module is further configured to: and calculating the travel mileage of each travel section, and merging all the travel sections with the travel mileage less than 30km with the adjacent travel sections until the travel mileage of all the travel sections is more than 30 km.
Preferably, the calculation module is further configured to: calculating the travel mileage:
wherein,represents the accumulated mileage at the acquisition time point t in the nth trip segment,indicating the accumulated mileage at the beginning of the nth trip segment,representing the travel mileage at the acquisition time point t in the nth travel segment;
and performing linear regression on the residual oil quantity in the stroke section to the stroke driving mileage to obtain an equation:
wherein,representing the remaining oil amount at the acquisition time point t in the nth stroke segment,indicating the amount of oil remaining at the beginning of the nth stroke segment,representing the amount of oil consumed per kilometer on average,represents the residual of the regression fit;
the fitted value of remaining oil amount at the end of the stroke sectionComprises the following steps:
wherein,is the mileage traveled at the end of the trip segment.
Preferably, the calculation module is further configured to: weighting the residual oil quantity at the connecting point of two adjacent stroke sections according to the driving mileage of the two stroke sections to smoothly connect the residual oil quantity of the two stroke sections, namely the residual oil quantity at the end of the (n-1) th stroke sectionAnd the remaining oil amount at the beginning of the nth strokeComprises the following steps:
wherein,the driving mileage of the (n-1) th trip segment and the (n) th trip segment respectively,fitting a value for the remaining oil volume at the end of the (n-1) th stroke segment,fitting a value for the remaining oil volume at the beginning of the nth stroke segment;
for each spliced and optimized travel section, calculating and optimizing the residual oil quantity according to the driving mileage of the acquisition time point, wherein the acquisition time point in the nth travel sectionOptimized residual oil amountComprises the following steps:
wherein,the amount of oil remaining at the beginning of the nth stroke,the remaining amount of oil at the end of the nth stroke segment,is the mileage traveled for the nth trip segment,for collecting time points in the nth stroke segmentThe trip mileage of (1).
Preferably, the calculation module is further configured to: the accumulated mileage m in one travel segmentiAnd distributing the consumed oil quantity to each acquisition time point according to the rotating speed of each acquisition time point, namely:
wherein,rijrepresents the accumulated mileage as miThe optimized residual oil quantity and the rotating speed at the jth time point of the time, wherein n is the accumulated mileage of miThe number of the collection time points of (a),represents a mileage of mi、mi+1The remaining oil amount is calculated according to the mileage.
Preferably, the instantaneous oil consumption generated by the generation module is: and obtaining the oil consumption in the time period by adopting the difference between the two adjacent optimized residual oil quantities, namely the instantaneous oil consumption in 10s, namely the instantaneous oil consumption at the acquisition time point t is as follows:
the accumulated oil consumption generated by the generation module is as follows: and accumulating the instantaneous oil consumption before each acquisition time point to obtain the accumulated oil consumption at the moment:
the oil filling amount generated by the generation module is as follows: the optimized residual oil quantity before and after the oiling time point is differed to obtain the oiling oil quantity;
the oil consumption generated by the generation module is counted as: and extracting data recorded every day according to time data in the OBD data, counting the driving mileage and the oil consumption of each day, and calculating the average hundred kilometers oil consumption of the vehicle on the day.
As can be seen from the above, the method and the device for measuring and calculating oil consumption based on data of the vehicle-mounted diagnosis system provided by the invention are based on the acquired OBD data, firstly, the invalid data is determined and replaced by segmenting the oil using segment, then, the change trend of the remaining oil amount and the optimized remaining oil amount are calculated by segmenting the stroke segment, and then, the instantaneous oil consumption, the accumulated oil consumption, the refueling oil amount and the oil consumption statistics are calculated and generated according to the optimized remaining oil amount and displayed to the user. Through the process, the invention can provide more accurate and practical oil consumption data for the user, help the user to improve the driving habit of the user and further save the fuel cost.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a fuel consumption measuring and calculating method based on data of a vehicle-mounted diagnosis system according to a preferred embodiment of the present invention;
fig. 2 is a schematic structural diagram of the fuel consumption measuring and calculating device based on the data of the vehicle-mounted diagnosis system according to the embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to specific embodiments and the accompanying drawings.
The embodiment of the invention provides a fuel consumption measuring and calculating method based on vehicle-mounted diagnosis system data, which comprises the following steps:
continuously acquiring OBD data at preset time intervals, and recording the time point of acquiring the OBD data as a plurality of acquisition time points;
determining a plurality of refueling time periods according to the average remaining oil quantity difference before and after each acquisition time point; determining the acquisition time point with the maximum oil quantity increment in each oiling time period as a plurality of oiling time points; segmenting all the acquired OBD data into a plurality of oil consumption sections according to the plurality of oil filling time points; for each oil consumption section, determining a plurality of sections of invalid data by counting the occurrence frequency of the maximum value of the residual oil quantity in the OBD data before and after each acquisition time point; calculating the trend of the change of the residual oil quantity of each oil consumption section and correspondingly replacing the invalid data with the calculation result;
dividing all the acquired OBD data into a plurality of travel sections according to ignition time points in the OBD data, and calculating the remaining oil quantity change trend of each travel section; splicing and optimizing each stroke section, and further obtaining the optimized residual oil quantity of any acquisition time point in each stroke section;
and calculating and generating instantaneous oil consumption, accumulated oil consumption, oil filling amount and oil consumption statistics according to the optimized residual oil amount, and displaying the statistics to a user.
According to the oil consumption measuring and calculating method based on the data of the vehicle-mounted diagnosis system, on the basis of the acquired OBD data, invalid data is determined and replaced through segmentation of oil sections, and the original OBD data is optimized, so that the OBD data better conforms to the actual use condition of automobile fuel; and then based on the optimized OBD data, calculating the change trend of the residual oil quantity and the optimized residual oil quantity according to the actual travel corresponding to the travel section through the segmentation of the travel section, further calculating and generating the statistics of the instantaneous oil consumption, the accumulated oil consumption, the oil filling quantity and the oil consumption according to the optimized residual oil quantity and displaying the statistics to the user, providing more accurate and useful oil consumption data for the user, and adjusting the driving habit of the user according to the statistics and saving the expenditure of the fuel oil cost in the daily driving process.
Referring to fig. 1, a flowchart of a fuel consumption measuring method based on data of a vehicle-mounted diagnostic system according to a preferred embodiment of the present invention is shown.
As a preferred embodiment, the fuel consumption measuring and calculating method based on the data of the vehicle-mounted diagnosis system comprises the following steps:
step 101, continuously acquiring OBD data at preset time intervals, and recording the time point of acquiring the OBD data as a plurality of acquisition time points.
In this step, OBD data are continuously collected from an on-board OBD system (on-board diagnostic system) at preset intervals of 10s, and the OBD data generally include: odometer mileage, remaining fuel volume, vehicle speed, engine speed, GPS data, trip start time, etc. The time point of acquiring the OBD data is recorded as an acquisition time point, and a plurality of continuous acquisition time points are recorded in the process of continuous acquisition at intervals of 10 s.
And step 102, determining a plurality of refueling time periods according to the average remaining fuel quantity difference before and after each collection time point, and determining the collection time point with the maximum fuel quantity increment in each refueling time period as a plurality of refueling time points.
Comparing the average residual oil quantity difference of 2 minutes before and after each acquisition time point; for one collection time point, the remaining oil quantity data in the OBD data collected at 12 collection time points before and after the collection time point is calculated, the average value is made, and then the difference value is obtained, namely the average remaining oil quantity difference value. If the average remaining oil quantity difference value is larger than the threshold value delta FmIf yes, judging that the refueling event occurs in the 4 minutes, and judging a period of 4 minutes before and after the acquisition time point as a refueling time period. During the refueling time period within four minutes, the residual fuel quantity data f of the time point t is collectedtThe conditions are satisfied:
and for the determined plurality of refueling time periods, further determining a refueling time point in each refueling time period, namely finding out a time point with the maximum fuel quantity increment as the refueling time point. Namely, the residual oil quantity at the oiling time point T meets the condition:
|fT+1-fT-1|=max(|ft+1-ft-1|)
wherein the oil amount ftThe remaining oil volume at each collection time point within 4 minutes of the refueling event is determined.
A series of oiling time points of the vehicle can be obtained through the steps, and are respectively marked as { T } according to the time sequence0=0,T1,T2,T3,……}。
103, segmenting all the acquired OBD data into a plurality of oil consumption sections according to the plurality of oil filling time points, and determining a plurality of sections of invalid data by counting the occurrence frequency of the maximum value of the residual oil quantity in the OBD data before and after each acquisition time point for each oil consumption section.
Because the maximum value of the residual fuel quantity which can be collected by the vehicle fuel quantity measuring system is generally smaller than the maximum volume of a vehicle fuel tank, a threshold value exists in the residual fuel quantity data in the collected OBD data, namely, for the refueling process and the driving process after the refueling process, the residual fuel quantity data near the refueling time point in the OBD data is continuously displayed as the threshold value, but the residual fuel quantity data is different from the actual fuel consumption data, and the invalid data, namely the invalid data in the embodiment of the invention, of the residual fuel quantity data is required to be corrected before the data is processed.
In this step, firstly, according to the plurality of refueling time points determined in the previous step, all the acquired OBD data are segmented into a plurality of oil consumption segments, and the oil consumption segments are a plurality of small segments of OBD data which are obtained by dividing all the acquired OBD data by taking the refueling time points as nodes. And calculating the occurrence frequency of the maximum value of the residual oil quantity in 20 collection time points before and after each collection time point in each oil use section, if the occurrence frequency is equal to 20 times, judging that invalid data exists in the oil use section, and then identifying the data of the first 75% of the oil use section judged to have the invalid data as the invalid data.
And 104, calculating the change trend of the residual oil quantity of each oil consumption section and correspondingly replacing the invalid data with the calculation result.
In the step and the subsequent steps, a series of driving mileage is calculated, and the driving mileage between two points can be directly obtained from the OBD system when the driving mileage is calculated; in addition, the method can also be obtained by a calculation mode based on GPS data in the acquired OBD data, specifically: calculating the travel distance delta S between any two acquisition time pointstThe calculation formula is as follows:
wherein, Latt-1、Latt、Lont-1、LontLatitude and longitude, Δ S, of two successive points in time t-1 and t, respectivelytThe distance of the GPS running between the time point t-1 and the time point t, and R is the radius of the earth.
For each oil use segment, calculating the trend of the change of the remaining oil quantity based on the OBD data, and specifically comprising the following steps:
firstly, subtracting the accumulated mileage during last refueling from the accumulated mileage at each collection time point in the oil consumption section to obtain the refueling driving mileage:
wherein,represents the accumulated mileage at the acquisition time point t after the kth fueling,represents the accumulated mileage at the time of the kth fueling,represents the mileage after the kth fueling at the time point t of the collection.
And then, performing linear regression on the residual oil quantity in the oil consumption section to the oil filling driving mileage to obtain an equation:
wherein,representing the remaining fuel amount at the acquisition time point t after the kth fueling,indicating the remaining amount of fuel after the kth fueling,representing the amount of oil consumed per kilometer on average,the residuals of the regression fit are indicated.
And finally, obtaining the average oil consumption level after the refueling and the fitting value of the residual oil amount of each refueling driving mileage:
and replacing the data corresponding to the determined invalid data into the original OBD data based on the obtained fitting value of the residual oil quantity, wherein the invalid data in the original OBD data can be directly deleted.
And 105, dividing all the acquired OBD data into a plurality of travel sections according to ignition time points in the OBD data, calculating the travel distance of each travel section, and merging all the travel sections with the travel distance less than 30km with the adjacent travel sections until the travel distances of all the travel sections are more than 30 km.
In the step, firstly, according to the ignition time point in the OBD data, all the acquired OBD data are segmented into a plurality of travel segments, namely according to the travel starting time { t }0,t1,t2,t3… …, the raw data is sliced into matrices in units of runs. Data J of nth tripnSatisfies the following conditions:
tn-1<t≤tn,t∈Jn
the shorter run segments are then combined by length. Through calculation and research, the oil consumption level data obtained after fitting is carried out on the journey with the driving mileage of more than 30km is basically credible. And the longer the travel mileage of the journey is, the closer the oil consumption level obtained by fitting is to the average oil consumption obtained by calculating all historical data of the vehicle. And the reliability of parameters such as oil consumption and the like calculated by the journey with the length below 30km is not high. Therefore, for the sake of data accuracy, the run segments with shorter length are spliced. Firstly, sequentially judging the travel mileage of the travel sections according to the time sequence, and marking the travel sections with the travel mileage less than 30km as short travels. And then, splicing the short stroke with the subsequent stroke section to form a new stroke section, and repeating the previous step until the driving mileage of all the stroke sections is more than 30 km. Finally, the last section of the travel is considered, and if the length is less than 30km, the last section of the travel is merged into the previous section of the travel; if the length is more than 30km, the independent travel section is calculated.
According to the steps, the vehicle travel data can be spliced into travel sections with the length being more than 30km, and each spliced travel sectionRun segment start time is { t0 *,t1 *,t2 *,t3 *,……}。
And 106, calculating the change trend of the remaining oil quantity of each stroke section.
First, the trip mileage is calculated:
wherein,represents the accumulated mileage at the acquisition time point t in the nth trip segment,indicating the accumulated mileage at the beginning of the nth trip segment,the travel range at the acquisition time t in the nth travel segment is represented.
And then, performing linear regression on the residual oil quantity in the stroke section to the stroke driving mileage to obtain an equation:
wherein,representing the remaining oil amount at the acquisition time point t in the nth stroke segment,indicating the amount of oil remaining at the beginning of the nth stroke segment,representing the amount of oil consumed per kilometer on average,represents the residual of the regression fit;
based on the equation, the fitted value of the remaining oil amount at the end of the stroke sectionComprises the following steps:
wherein,is the mileage at the end of the trip segment, i.e. in the trip segmentIs measured.
And 107, splicing and optimizing each stroke section, and further obtaining the optimized residual oil quantity of any acquisition time point in each stroke section.
There is a certain deviation between the remaining oil amount at the end of the previous stroke and the remaining oil amount at the start of the next stroke in the two adjacent stroke sections. Therefore, the residual oil quantity at the connecting point of two adjacent stroke sections is weighted according to the driving mileage of the two stroke sections, so that the residual oil quantity of the two stroke sections is smoothly connected, namely the residual oil quantity at the end of the (n-1) th stroke sectionAnd the remaining oil amount at the beginning of the nth strokeComprises the following steps:
wherein,the driving mileage of the (n-1) th trip segment and the (n) th trip segment respectively,fitting a value for the remaining oil volume at the end of the (n-1) th stroke segment,a value is fitted to the remaining oil volume at the beginning of the nth stroke segment.
Through the splicing optimization, the remaining oil amount is further calculated and optimized, and the method specifically comprises the following steps:
for each spliced and optimized travel section, calculating and optimizing the residual oil quantity according to the driving mileage of the acquisition time point, wherein the acquisition time point in the nth travel sectionOptimized residual oil amountComprises the following steps:
wherein,the amount of oil remaining at the beginning of the nth stroke,the remaining amount of oil at the end of the nth stroke segment,is the mileage traveled for the nth trip segment,for collecting time points in the nth stroke segmentThe trip mileage of (1).
Because the mileage data are all integers, the running mileage of a plurality of continuous collection time points is always the same, and the residual oil amount calculated according to the method is also equal, so that the residual oil amount is discontinuous along with the change of time, and the method is further optimized in the step: the accumulated mileage m in one travel segmentiAnd distributing the consumed oil quantity to each acquisition time point according to the rotating speed of each acquisition time point, namely:
wherein,rijrepresents the accumulated mileage as miThe optimized residual oil quantity and the rotating speed at the jth time point of the time, wherein n is the accumulated mileage of miThe number of the collection time points of (a),represents a mileage of mi、mi+1The remaining oil amount is calculated according to the mileage.
And 108, calculating and generating instantaneous oil consumption, accumulated oil consumption, oil filling quantity and oil consumption statistics according to the optimized residual oil quantity, and displaying the statistics to a user.
Based on the optimized remaining oil amount calculated in the previous step, the final result can be further processed:
(1) instantaneous oil consumption
And (3) obtaining the oil consumption in the period by using the difference of the two adjacent optimized residual oil quantities, namely the instantaneous oil consumption (within 10 s), namely the instantaneous oil consumption at the acquisition time point t is as follows:
(2) and accumulated oil consumption
And accumulating the instantaneous oil consumption before each time point to obtain the accumulated oil consumption at the moment:
(3) oil filling quantity
And finding two pieces of vehicle condition data before and after the refueling time, and obtaining the refueling oil quantity by subtracting the optimized residual oil quantity of the two pieces of vehicle condition data.
(4) Daily data
And extracting data recorded every day according to time data in the OBD data, counting the driving mileage and the oil consumption of each day, and calculating the average hundred kilometers oil consumption of the vehicle on the day.
On the other hand, the embodiment of the invention also provides a fuel consumption measuring and calculating device based on the data of the vehicle-mounted diagnosis system. Fig. 2 is a schematic structural diagram of the fuel consumption measuring and calculating device based on the data of the on-board diagnosis system according to the embodiment of the present invention.
The fuel consumption measuring and calculating device based on the data of the vehicle-mounted diagnosis system comprises:
the acquisition module 201 is configured to continuously acquire OBD data at preset time intervals, and record a time point of acquiring the OBD data as a plurality of acquisition time points;
the optimization module 202 is configured to determine a plurality of refueling time periods according to an average remaining fuel amount difference before and after each of the collection time points, and determine the collection time point with the largest fuel amount increment in each of the refueling time periods as a plurality of refueling time points; dividing all the acquired OBD data into a plurality of oil consumption sections according to the plurality of oiling time points, and determining a plurality of sections of invalid data by counting the occurrence frequency of the maximum value of the residual oil quantity in the OBD data before and after each acquisition time point for each oil consumption section; calculating the trend of the change of the residual oil quantity of each oil consumption section and correspondingly replacing the invalid data with the calculation result;
the calculation module 203 is used for segmenting all the acquired OBD data into a plurality of travel segments according to ignition time points in the OBD data, and calculating the change trend of the residual oil amount of each travel segment; splicing and optimizing each stroke section, and further obtaining the optimized residual oil quantity of any acquisition time point in each stroke section;
and the generating module 204 is used for calculating and generating instantaneous oil consumption, accumulated oil consumption, oil filling quantity and oil consumption statistics according to the optimized residual oil quantity and displaying the statistics to a user.
In a preferred embodiment, the optimization module 202 and the calculation module 203 are each further configured to: calculating the driving mileage delta S between any two acquisition time points based on the GPS positioning information in the OBD datatThe calculation formula is as follows:
wherein, Latt-1、Latt、Lont-1、LontLatitude and longitude, Δ S, of two successive points in time t-1 and t, respectivelytThe distance of the GPS running between the time point t-1 and the time point t, and R is the radius of the earth.
In a preferred embodiment, the preset time interval is 10 s; the optimizing dieBlock 202 is further for: comparing the average residual oil quantity difference of 2 minutes before and after each acquisition time point, and if the average residual oil quantity difference is greater than a threshold value delta FmAnd judging that the total time period of 4 minutes before and after the acquisition time point is the refueling time period.
In a preferred embodiment, the optimization module 202 is further configured to: calculating the occurrence frequency of the maximum value of the residual oil quantity in 20 collection time points before and after each collection time point in one oil consumption section, and if the occurrence frequency is equal to 20 times, judging that invalid data exists in the oil consumption section; the data of the first 75% of the oil field judged to have invalid data is regarded as invalid data.
In a preferred embodiment, the optimization module 202 is further configured to: subtracting the accumulated mileage during last refueling from the accumulated mileage at each acquisition time point in the oil consumption section to obtain the refueling driving mileage:
wherein,represents the accumulated mileage at the acquisition time point t after the kth fueling,represents the accumulated mileage at the time of the kth fueling,representing the refueling driving mileage at the time point t after the kth refueling;
and performing linear regression on the residual oil quantity in the oil consumption section on the oil filling driving mileage to obtain an equation:
wherein,representing the remaining fuel amount at the acquisition time point t after the kth fueling,indicating the remaining amount of fuel after the kth fueling,representing the amount of oil consumed per kilometer on average,represents the residual of the regression fit;
obtaining the average oil consumption level after the oil filling and the remaining oil mass fitting value of each oil filling driving mileage:
and replacing the invalid data by the calculated fitting value of the residual oil quantity of each refueling driving mileage correspondingly.
In a preferred embodiment, the calculation module 203 is further configured to: and calculating the travel mileage of each travel section, and merging all the travel sections with the travel mileage less than 30km with the adjacent travel sections until the travel mileage of all the travel sections is more than 30 km.
In a preferred embodiment, the calculation module 203 is further configured to: calculating the travel mileage:
wherein,represents the accumulated mileage at the acquisition time point t in the nth trip segment,indicating the accumulated mileage at the beginning of the nth trip segment,representing the travel mileage at the acquisition time point t in the nth travel segment;
and performing linear regression on the residual oil quantity in the stroke section to the stroke driving mileage to obtain an equation:
wherein,representing the remaining oil amount at the acquisition time point t in the nth stroke segment,indicating the amount of oil remaining at the beginning of the nth stroke segment,representing the amount of oil consumed per kilometer on average,represents the residual of the regression fit;
the fitted value of remaining oil amount at the end of the stroke sectionComprises the following steps:
wherein,is the mileage traveled at the end of the trip segment.
In a preferred embodiment, the calculation module 203 is further configured to: weighting the residual oil quantity at the connecting point of two adjacent stroke sections according to the driving mileage of the two stroke sections to smoothly connect the residual oil quantity of the two stroke sections, namely the residual oil quantity at the end of the (n-1) th stroke sectionAnd the remaining oil amount at the beginning of the nth strokeComprises the following steps:
wherein,the driving mileage of the (n-1) th trip segment and the (n) th trip segment respectively,fitting a value for the remaining oil volume at the end of the (n-1) th stroke segment,fitting a value for the remaining oil volume at the beginning of the nth stroke segment;
for each spliced and optimized travel section, calculating and optimizing the residual oil quantity according to the driving mileage of the acquisition time point, wherein the acquisition time point in the nth travel sectionOptimized residual oil amountComprises the following steps:
wherein,the amount of oil remaining at the beginning of the nth stroke,the remaining amount of oil at the end of the nth stroke segment,is the mileage traveled for the nth trip segment,for collecting time points in the nth stroke segmentThe trip mileage of (1).
In a preferred embodiment, the calculation module 203 is further configured to: the accumulated mileage m in one travel segmentiAnd distributing the consumed oil quantity to each acquisition time point according to the rotating speed of each acquisition time point, namely:
wherein,rijrepresents the accumulated mileage as miThe optimized residual oil quantity and the rotating speed at the jth time point of the time, wherein n is the accumulated mileage of miThe number of the collection time points of (a),represents a mileage of mi、mi+1The remaining oil amount is calculated according to the mileage.
In a preferred embodiment, the instantaneous oil consumption generated by the generation module 204 is: and obtaining the oil consumption in the time period by adopting the difference between the two adjacent optimized residual oil quantities, namely the instantaneous oil consumption in 10s, namely the instantaneous oil consumption at the acquisition time point t is as follows:
the accumulated oil consumption generated by the generation module is as follows: and accumulating the instantaneous oil consumption before each acquisition time point to obtain the accumulated oil consumption at the moment:
the oil filling amount generated by the generation module is as follows: the optimized residual oil quantity before and after the oiling time point is differed to obtain the oiling oil quantity;
the oil consumption generated by the generation module is counted as: and extracting data recorded every day according to time data in the OBD data, counting the driving mileage and the oil consumption of each day, and calculating the average hundred kilometers oil consumption of the vehicle on the day.
The apparatus of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
The method and the device can be directly used as an expansion module to be arranged in a vehicle-mounted OBD system, and can also be used as independent software and APP to be installed on an intelligent terminal of a user, and corresponding functions are completed by information communication with the vehicle-mounted OBD system.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the invention, also features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements and the like that may be made without departing from the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (12)

1. A fuel consumption measuring and calculating method based on vehicle-mounted diagnosis system data is characterized by comprising the following steps:
continuously acquiring OBD data at preset time intervals, and recording the time point of acquiring the OBD data as a plurality of acquisition time points; the preset time interval is 10 s;
determining a plurality of refueling time periods according to the average remaining oil quantity difference value before and after each collection time point, and determining the collection time point with the maximum oil quantity increment in each refueling time period as a plurality of refueling time points; dividing all the acquired OBD data into a plurality of oil consumption sections according to the plurality of oiling time points, and determining a plurality of sections of invalid data by counting the occurrence frequency of the maximum value of the residual oil quantity in the OBD data before and after each acquisition time point for each oil consumption section; calculating the trend of the change of the residual oil quantity of each oil consumption section and correspondingly replacing the invalid data with the calculation result;
the step of determining a plurality of refueling time periods according to the average remaining fuel quantity difference before and after each collection time point comprises the following steps: comparing the average residual oil quantity difference of 2 minutes before and after each acquisition time point, and if the average residual oil quantity difference is greater than a threshold value delta FmJudging that the time period of 4 minutes before and after the acquisition time point is the refueling time period;
for each oil consumption section, the step of determining a plurality of sections of invalid data by counting the occurrence frequency of the maximum value of the residual oil amount in the OBD data before and after each acquisition time point comprises the following steps: calculating the occurrence frequency of the maximum value of the residual oil quantity in 20 collection time points before and after each collection time point in one oil consumption section, and if the occurrence frequency is equal to 20 times, judging that invalid data exists in the oil consumption section; regarding data in the first 75% of the oil using segments judged to have invalid data as invalid data;
the step of calculating the trend of the remaining oil quantity change of each oil consumption section and correspondingly replacing the invalid data with the calculation result comprises the following steps: subtracting the accumulated mileage during last refueling from the accumulated mileage at each acquisition time point in the oil consumption section to obtain the refueling driving mileage:
wherein,represents the accumulated mileage at the acquisition time point t after the kth fueling,to representThe accumulated mileage at the time of the kth fueling,representing the refueling driving mileage at the time point t after the kth refueling;
and performing linear regression on the residual oil quantity in the oil consumption section on the oil filling driving mileage to obtain an equation:
wherein,representing the remaining fuel amount at the acquisition time point t after the kth fueling,indicating the remaining amount of fuel after the kth fueling,representing the amount of oil consumed per kilometer on average,represents the residual of the regression fit;
obtaining the average oil consumption level after the oil filling and the remaining oil mass fitting value of each oil filling driving mileage:
replacing the invalid data by the calculated fitting value of the residual oil amount of each refueling driving mileage;
dividing all the acquired OBD data into a plurality of travel sections according to ignition time points in the OBD data, and calculating the remaining oil quantity change trend of each travel section; splicing and optimizing each stroke section, and further obtaining the optimized residual oil quantity of any acquisition time point in each stroke section;
calculating and generating instantaneous oil consumption, accumulated oil consumption, oil filling amount and oil consumption statistics according to the optimized residual oil amount and displaying the statistics to a user;
the method further comprises the following steps: calculating the driving mileage delta S between any two acquisition time points based on the GPS positioning information in the OBD datatThe calculation formula is as follows:
wherein, Latt-1、Latt、Lont-1、LontLatitude and longitude, Δ S, of two successive points in time t-1 and t, respectivelytIs the time point t-1And the distance of the GPS driven by the time point t, and R is the radius of the earth.
2. The method of claim 1, wherein the step of segmenting all of the acquired OBD data into travel segments according to ignition time points in the OBD data further comprises, after the step of segmenting all of the acquired OBD data into travel segments:
and calculating the travel mileage of each travel section, and merging all the travel sections with the travel mileage less than 30km with the adjacent travel sections until the travel mileage of all the travel sections is more than 30 km.
3. The method of claim 2, wherein the step of calculating the trend of change in the amount of remaining oil for each of the trip segments comprises:
calculating the travel mileage:
wherein,represents the accumulated mileage at the acquisition time point t in the nth trip segment,indicating the accumulated mileage at the beginning of the nth trip segment,representing the travel mileage at the acquisition time point t in the nth travel segment;
and performing linear regression on the residual oil quantity in the stroke section to the stroke driving mileage to obtain an equation:
wherein,representing the remaining oil amount at the acquisition time point t in the nth stroke segment,indicating the amount of oil remaining at the beginning of the nth stroke segment,representing the amount of oil consumed per kilometer on average,represents the residual of the regression fit;
the fitted value of remaining oil amount at the end of the stroke sectionComprises the following steps:
wherein,trip distance at the end of the trip segment.
4. The method of claim 3, wherein said step of optimizing each of said travel segments for stitching and further deriving an optimized remaining oil volume at any acquisition time point in each of said travel segments comprises:
weighting the residual oil quantity at the connecting point of two adjacent stroke sections according to the driving mileage of the two stroke sections to smoothly connect the residual oil quantity of the two stroke sections, namely the residual oil quantity at the end of the (n-1) th stroke sectionAnd the remaining oil amount at the beginning of the nth strokeComprises the following steps:
wherein,the driving mileage of the (n-1) th trip segment and the (n) th trip segment respectively,fitting a value for the remaining oil volume at the end of the (n-1) th stroke segment,fitting a value for the remaining oil volume at the beginning of the nth stroke segment;
for each spliced and optimized travel section, calculating and optimizing the residual oil quantity according to the driving mileage of the acquisition time point, wherein the acquisition time point in the nth travel sectionOptimized residual oil amountComprises the following steps:
wherein,the amount of oil remaining at the beginning of the nth stroke,the remaining amount of oil at the end of the nth stroke segment,is the mileage traveled for the nth trip segment,for collecting time points in the nth stroke segmentThe trip mileage of (1).
5. The method of claim 4, further comprising, after obtaining the optimized remaining oil volume at any collection time point in each of the trip segments, the steps of:
the accumulated mileage m in one travel segmentiAnd distributing the consumed oil quantity to each acquisition time point according to the rotating speed of each acquisition time point, namely:
wherein,rijrepresents the accumulated mileage as miThe optimized residual oil quantity and the rotating speed at the jth time point of the time, wherein n is the accumulated mileage of miThe number of collection time points of fi opRepresents a mileage of mi、mi+1The remaining oil amount is calculated according to the mileage.
6. The method of claim 5, wherein the step of generating instantaneous fuel consumption, accumulated fuel consumption, fueling quantity, and fuel consumption statistics from the optimized remaining fuel quantity calculation comprises:
the instantaneous oil consumption is as follows: and obtaining the oil consumption in the time period by adopting the difference between the two adjacent optimized residual oil quantities, namely the instantaneous oil consumption in 10s, namely the instantaneous oil consumption at the acquisition time point t is as follows:
the accumulated oil consumption is as follows: and accumulating the instantaneous oil consumption before each acquisition time point to obtain the accumulated oil consumption at the moment:
the oiling oil quantity is as follows: the optimized residual oil quantity before and after the oiling time point is differed to obtain the oiling oil quantity;
the oil consumption is counted as: and extracting data recorded every day according to time data in the OBD data, counting the driving mileage and the oil consumption of each day, and calculating the average hundred kilometers oil consumption of the vehicle on the day.
7. A fuel consumption measuring and calculating device based on vehicle-mounted diagnosis system data is characterized by comprising:
the acquisition module is used for continuously acquiring the OBD data at preset time intervals and recording the time point of acquiring the OBD data as a plurality of acquisition time points; the preset time interval is 10 s;
the optimization module is used for determining a plurality of refueling time periods according to the average residual oil quantity difference value before and after each collection time point, and determining the collection time point with the maximum oil quantity increment in each refueling time period as a plurality of refueling time points; dividing all the acquired OBD data into a plurality of oil consumption sections according to the plurality of oiling time points, and determining a plurality of sections of invalid data by counting the occurrence frequency of the maximum value of the residual oil quantity in the OBD data before and after each acquisition time point for each oil consumption section; calculating the trend of the change of the residual oil quantity of each oil consumption section and correspondingly replacing the invalid data with the calculation result;
the calculation module is used for dividing all the acquired OBD data into a plurality of travel sections according to the ignition time point in the OBD data and calculating the change trend of the residual oil quantity of each travel section; splicing and optimizing each stroke section, and further obtaining the optimized residual oil quantity of any acquisition time point in each stroke section;
the generating module is used for calculating and generating instantaneous oil consumption, accumulated oil consumption, oil filling quantity and oil consumption statistics according to the optimized residual oil quantity and displaying the statistics to a user;
the optimization module and the calculation module are each further configured to: calculating the driving mileage delta S between any two acquisition time points based on the GPS positioning information in the OBD datatThe calculation formula is as follows:
wherein, Latt-1、Latt、Lont-1、LontLatitude and longitude, Δ S, of two successive points in time t-1 and t, respectivelytThe distance of the GPS running between the time point t-1 and the time point t is shown, and R is the radius of the earth;
the optimization module is further to: comparing each of the acquisitionsAverage remaining oil quantity difference of 2 minutes before and after the time point, if the average remaining oil quantity difference is larger than a threshold value delta FmJudging that the time period of 4 minutes before and after the acquisition time point is the refueling time period;
the optimization module is further to: calculating the occurrence frequency of the maximum value of the residual oil quantity in 20 collection time points before and after each collection time point in one oil consumption section, and if the occurrence frequency is more than or equal to 20 times, judging that invalid data exists in the oil consumption section; regarding data in the first 75% of the oil using segments judged to have invalid data as invalid data;
the optimization module is further to: subtracting the accumulated mileage during last refueling from the accumulated mileage at each acquisition time point in the oil consumption section to obtain the refueling driving mileage:
wherein,represents the accumulated mileage at the acquisition time point t after the kth fueling,represents the accumulated mileage at the time of the kth fueling,representing the refueling driving mileage at the time point t after the kth refueling;
and performing linear regression on the residual oil quantity in the oil consumption section on the oil filling driving mileage to obtain an equation:
wherein,is shown asThe residual oil quantity at the time point t is collected after the oil is added for k times,indicating the remaining amount of fuel after the kth fueling,representing the amount of oil consumed per kilometer on average,represents the residual of the regression fit;
obtaining the average oil consumption level after the oil filling and the remaining oil mass fitting value of each oil filling driving mileage:
and replacing the invalid data by the calculated fitting value of the residual oil quantity of each refueling driving mileage correspondingly.
8. The apparatus of claim 7, wherein the computing module is further configured to: and calculating the travel mileage of each travel section, and merging all the travel sections with the travel mileage less than 30km with the adjacent travel sections until the travel mileage of all the travel sections is more than 30 km.
9. The apparatus of claim 8, wherein the computing module is further configured to: calculating the travel mileage:
wherein,represents the accumulated mileage at the acquisition time point t in the nth trip segment,indicating the accumulated mileage at the beginning of the nth trip segment,representing the travel mileage at the acquisition time point t in the nth travel segment;
and performing linear regression on the residual oil quantity in the stroke section to the stroke driving mileage to obtain an equation:
wherein,representing the remaining oil amount at the acquisition time point t in the nth stroke segment,indicating the amount of oil remaining at the beginning of the nth stroke segment,representing the amount of oil consumed per kilometer on average,represents the residual of the regression fit;
the fitted value of remaining oil amount at the end of the stroke sectionComprises the following steps:
wherein,is the mileage traveled at the end of the trip segment.
10. The apparatus of claim 9, wherein the computing module is further configured to: weighting the residual oil quantity at the connecting point of two adjacent stroke sections according to the driving mileage of the two stroke sections to smoothly connect the residual oil quantity of the two stroke sections, namely the residual oil quantity at the end of the (n-1) th stroke sectionAnd the remaining oil amount at the beginning of the nth strokeComprises the following steps:
wherein,the driving mileage of the (n-1) th trip segment and the (n) th trip segment respectively,fitting a value for the remaining oil volume at the end of the (n-1) th stroke segment,fitting a value for the remaining oil volume at the beginning of the nth stroke segment;
for each spliced and optimized travel section, calculating and optimizing the residual oil quantity according to the driving mileage of the acquisition time point, wherein the acquisition time point in the nth travel sectionOptimized residual oil amountComprises the following steps:
wherein,the amount of oil remaining at the beginning of the nth stroke,the remaining amount of oil at the end of the nth stroke segment,is the mileage traveled for the nth trip segment,for collecting time points in the nth stroke segmentThe trip mileage of (1).
11. The apparatus of claim 10, wherein the computing module is further configured to: the accumulated mileage m in one travel segmentiAnd distributing the consumed oil quantity to each acquisition time point according to the rotating speed of each acquisition time point, namely:
wherein,rijrepresents the accumulated mileage as miThe optimized residual oil quantity and the rotating speed at the jth time point of the time, wherein n is the accumulated mileage of miThe number of collection time points of fi opRepresents a mileage of mi、mi+1The remaining oil amount is calculated according to the mileage.
12. The apparatus of claim 11, wherein the instantaneous oil consumption generated by the generation module is: and obtaining the oil consumption in the time period by adopting the difference between the two adjacent optimized residual oil quantities, namely the instantaneous oil consumption in 10s, namely the instantaneous oil consumption at the acquisition time point t is as follows:
the accumulated oil consumption generated by the generation module is as follows: and accumulating the instantaneous oil consumption before each acquisition time point to obtain the accumulated oil consumption at the moment:
the oil filling amount generated by the generation module is as follows: the optimized residual oil quantity before and after the oiling time point is differed to obtain the oiling oil quantity;
the oil consumption generated by the generation module is counted as: and extracting data recorded every day according to time data in the OBD data, counting the driving mileage and the oil consumption of each day, and calculating the average hundred kilometers oil consumption of the vehicle on the day.
CN201610225575.2A 2016-04-12 2016-04-12 Oil consumption measuring method and device based on onboard diagnostic system data Active CN105910665B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610225575.2A CN105910665B (en) 2016-04-12 2016-04-12 Oil consumption measuring method and device based on onboard diagnostic system data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610225575.2A CN105910665B (en) 2016-04-12 2016-04-12 Oil consumption measuring method and device based on onboard diagnostic system data

Publications (2)

Publication Number Publication Date
CN105910665A CN105910665A (en) 2016-08-31
CN105910665B true CN105910665B (en) 2018-12-18

Family

ID=56746036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610225575.2A Active CN105910665B (en) 2016-04-12 2016-04-12 Oil consumption measuring method and device based on onboard diagnostic system data

Country Status (1)

Country Link
CN (1) CN105910665B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503475B (en) * 2016-11-24 2019-02-01 北京车网互联科技有限公司 A method of fuel consumption per hundred kilometers in oil filling cycle is calculated based on automobile OBD data
CN106780830B (en) * 2016-11-24 2019-07-26 北京车网互联科技有限公司 A method of certain stroke fuel consumption per hundred kilometers is predicted based on automobile OBD data
CN107543588B (en) * 2017-07-27 2019-10-25 成都亿盟恒信科技有限公司 A kind of vehicle oil consumption monitoring method based on ultrasonic listening oil consumption fluctuation filtering
CN110017884B (en) * 2018-01-08 2021-09-07 宝沃汽车(中国)有限公司 Vehicle fault detection method and system, vehicle cloud platform and vehicle
CN110458603A (en) * 2019-07-17 2019-11-15 吉利汽车研究院(宁波)有限公司 Charging method of hiring a car, device, storage medium and equipment for fuel combustion vehicle
CN111210537A (en) * 2019-10-10 2020-05-29 中国第一汽车股份有限公司 Oil consumption analysis method, device, equipment and storage medium
CN111739286B (en) * 2020-05-15 2023-10-13 南斗六星***集成有限公司 Stroke analysis method and device based on vehicle speed state
CN113756009A (en) * 2021-10-25 2021-12-07 浙江理工大学 Method and device for controlling oiling machine oil level data for circular knitting machine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102006007786B3 (en) * 2006-02-20 2007-06-21 Siemens Ag Fuel injection quantity control parameters estimating method for piezo injection system, involves finding injection control grid with grid points, finding test points and estimating parameters using limited linear regression between points
CN101230810A (en) * 2008-01-18 2008-07-30 华夏龙晖(北京)汽车电子科技有限公司 Method for controlling fuel injection by electric control unit
CN101738233A (en) * 2010-01-15 2010-06-16 延锋伟世通怡东汽车仪表有限公司 Method for calculating average fuel consumption, remaining fuel and driving range
CN103838981A (en) * 2014-03-27 2014-06-04 交通运输部科学研究院 Method for metering vehicle oil charge
CN103838983A (en) * 2014-03-27 2014-06-04 交通运输部科学研究院 Method for metering vehicle oil charge
CN104089667A (en) * 2014-07-24 2014-10-08 交通运输部科学研究院 Vehicle oil consumption measuring method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102006007786B3 (en) * 2006-02-20 2007-06-21 Siemens Ag Fuel injection quantity control parameters estimating method for piezo injection system, involves finding injection control grid with grid points, finding test points and estimating parameters using limited linear regression between points
CN101230810A (en) * 2008-01-18 2008-07-30 华夏龙晖(北京)汽车电子科技有限公司 Method for controlling fuel injection by electric control unit
CN101738233A (en) * 2010-01-15 2010-06-16 延锋伟世通怡东汽车仪表有限公司 Method for calculating average fuel consumption, remaining fuel and driving range
CN103838981A (en) * 2014-03-27 2014-06-04 交通运输部科学研究院 Method for metering vehicle oil charge
CN103838983A (en) * 2014-03-27 2014-06-04 交通运输部科学研究院 Method for metering vehicle oil charge
CN104089667A (en) * 2014-07-24 2014-10-08 交通运输部科学研究院 Vehicle oil consumption measuring method

Also Published As

Publication number Publication date
CN105910665A (en) 2016-08-31

Similar Documents

Publication Publication Date Title
CN105910665B (en) Oil consumption measuring method and device based on onboard diagnostic system data
CN111806239B (en) Electric vehicle endurance mileage measuring method, electronic device, and storage medium
CN107000751B (en) Apparatus and method for providing recommended driving speed
CN111670340B (en) Method for acquiring remaining driving mileage of vehicle, electronic equipment and vehicle
EP2036777B1 (en) Method and system of providing driving data to a driver of a vehicle
CN107856564B (en) Average energy consumption calculation method and device for electric automobile, controller and automobile
CN108154261B (en) Recommendation method and device for optimal gas station
CN104792543A (en) Constructing method of road cyclic conditions
CN102853872A (en) Method for calculating oil consumption of vehicle, oil consumption device and oil consumption vehicle
CN111997709B (en) On-line monitoring method and system for vehicle-mounted engine oil
CN108120999A (en) In-vehicle navigation apparatus and parking lot guide method
CN110751311A (en) Data extraction and real-time prediction method for sporadic traffic jam duration
CN113159435B (en) Method and system for predicting remaining driving mileage of new energy vehicle
CN113263993B (en) Fault early warning method, device, communication equipment and storage medium
EP3154839B1 (en) Driving assistance method for increasing the awareness of drivers of vehicles about fuel consumption and/or other consumption sources of the vehicle
CN115438811A (en) Intelligent maintenance method and device for extended range vehicle, electronic equipment and storage medium
DE102020121119A1 (en) METHOD AND SYSTEM FOR DETECTING ENGINE OIL DETERMINATION
CN108268678B (en) Driving behavior analysis method, device and system
JP7308822B2 (en) Road test system, program for road test system
CN114608604B (en) Vehicle oil consumption prediction method and device based on machine learning and GPS positioning
CN113362488B (en) OBD monitoring data processing system
CN113954688B (en) Method and system for estimating driving range of electric automobile
CN112874528B (en) Vehicle speed determination method, vehicle speed determination device, vehicle-mounted terminal and storage medium
CN112364082A (en) Energy consumption analysis method and device for vehicle
RU2761126C1 (en) Method for automated control of the residual life of the vehicle in the process of its operation and device for its implementation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 1002-1, 10th floor, No.56, Beisihuan West Road, Haidian District, Beijing 100080

Patentee after: Ronglian Technology Group Co., Ltd

Address before: 100080, Beijing, Haidian District, No. 56 West Fourth Ring Road, glorious Times Building, 10, 1002-1

Patentee before: UNITED ELECTRONICS Co.,Ltd.