CN106204801B - The method that a kind of pair of volume read-out data statistics and volume read-out data exception are filtered - Google Patents

The method that a kind of pair of volume read-out data statistics and volume read-out data exception are filtered Download PDF

Info

Publication number
CN106204801B
CN106204801B CN201610527723.6A CN201610527723A CN106204801B CN 106204801 B CN106204801 B CN 106204801B CN 201610527723 A CN201610527723 A CN 201610527723A CN 106204801 B CN106204801 B CN 106204801B
Authority
CN
China
Prior art keywords
data
abnormal
oil consumption
oiling
label
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
CN201610527723.6A
Other languages
Chinese (zh)
Other versions
CN106204801A (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.)
China Electric fufu Mdt InfoTech Ltd
Original Assignee
Fujian Fujitsu Communication Software 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 Fujian Fujitsu Communication Software Co Ltd filed Critical Fujian Fujitsu Communication Software Co Ltd
Priority to CN201610527723.6A priority Critical patent/CN106204801B/en
Publication of CN106204801A publication Critical patent/CN106204801A/en
Application granted granted Critical
Publication of CN106204801B publication Critical patent/CN106204801B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0808Diagnosing performance data

Abstract

The method that the present invention provides a kind of pair of volume read-out data statistics and volume read-out data exception is filtered, the method is by collected allowance data, it is for statistical analysis in conjunction with vehicle operation data, analysis is when refueling or stealing oil, the speed of vehicle is 0, and the duration refueled is no more than half an hour, to obtain out volume read-out data, and filters the allowance information due to collecting inaccuracy in vehicle operation because of fluctuation automatically;The accuracy of present invention raising volume read-out data statistics.

Description

The method that a kind of pair of volume read-out data statistics and volume read-out data exception are filtered
Technical field
The present invention relates to vehicle networking technical field more particularly to a kind of pair of volume read-out data statistics and volume read-out data exceptions The method being filtered.
Background technique
China Transportation Industry is rapidly developed at present, and vehicle transport enterprise is also being continuously increased, competitive pressure It is bigger, it is managed to reduce cost it is necessary to the day-to-day loss to vehicle, wherein just comprising the management to vehicle oil, But be directed to universal voiding invoice, steal the phenomenon that oil sells oil, it is difficult to accomplish automatic management comparison, to reach supervision purpose.
" a kind of oiling statistical method and system " is disclosed in the prior art and sees Publication No.: 105574485A, publication date Are as follows: the Chinese patent of 2014-12-17, the invention provide a kind of oiling statistical method, comprising: onboard wireless data transmission is set It is standby to receive vehicle CAN information, and the vehicle CAN information is transmitted to an intelligent communication terminal;Wherein, it is described when vehicle is lighted a fire CAN message includes the duration of ignition, current total kilometrage and Fuel Remained;When vehicle stall, the CAN message include the burnout time, This mileage, this mileage oil consumption, current total kilometrage and Fuel Remained;The intelligent communication terminal is the case where connecting network Under, the background server is gone through all over the CAN message, if a rear Fuel Remained is greater than a preceding Fuel Remained, is determined Refuel, difference is volume read-out, this when be refueling time.But it is not applicable in automotive field, vehicle in the case where not flame-out, Oil steathily can be carried out, causes volume read-out not statistical uncertainty really, oily phenomenon steathily can not be monitored.Only pass through intensive periodical acquisition row Car data and oil mass data, and acquisition data are analyzed and counted, effectively accurate prison could be carried out to oil mass variation in driving Pipe.It is not identical as the technical solution of present patent application, and the technical issues of solution, is also different.
Summary of the invention
The technical problem to be solved in the present invention, be to provide a kind of pair of volume read-out data statistics and volume read-out data exception into The method of row filtering, improves the accuracy of volume read-out data statistics.
The present invention is implemented as follows: the side that a kind of pair of volume read-out data statistics and volume read-out data exception are filtered Method, the method are by collected allowance data, and for statistical analysis in conjunction with vehicle operation data, analysis is being refueled or stolen When oily, the speed of vehicle is 0, and the duration refueled is no more than half an hour, to obtain out volume read-out data, and filters automatically Fall the allowance information due to collecting inaccuracy in vehicle operation because of fluctuation.
Further, the method specifically:
The collected collected vehicle driving information of volume read-out data combination vehicle-mounted machine of oil mass collector is uploaded together To a remote server;
The data being collected into are taken out from remote server, it is for statistical analysis, obtain volume read-out information;
Steps are as follows for the statistical analysis:
Step 1, initialization one compare set, the process data for comparing set and being used to store comparison;Initialization one adds Oil set and an abnormal oil consumption set;Time label is initialized, the time label is used to record oiling initial time;Initially Change an oiling label, an abnormal oil consumption label and whether persistent anomaly oil consumption marks;The abnormal false mark of initialization one, it is described different Normal false mark is used to record false abnormal oil consumption;An interim time started is initialized, the interim time started is for recording Start refueling time in advance, which is an exchange variable;
Step 2 loops through the data of collection, a data of current collection is put into comparison set, so Judgement is compared to the data compared in set afterwards;
Step 3 judges whether the number of data compared in set is more than or equal to two, if it is less, step 2 is jumped to, Otherwise it takes out the first data in comparison set and is assigned to object A, take out penultimate data and be assigned to object B, take out most The latter data are assigned to object C, judge the relationship of the allowance data in allowance data and B in object C to be added Oil mass data information, and the volume read-out data information of abnormal oil consumption is filtered.
Further, the relationship of the allowance data in the judgement object C and the allowance data in B is refueled Data information is measured, and the volume read-out data information of abnormal oil consumption is filtered, specifically:
When the allowance data in C are greater than the allowance data in B: emptying the interim time started, judge the label that refuels It whether is oiling,
It is not to refuel;
Then judge that abnormal oil consumption marks whether as exception, it is no, set of refueling is added the data in gathering are compared, and will add Oil ga(u)ge note empties comparison set, only retains the last item data labeled as refueling;It is the exception judged in abnormal oil consumption set Whether oil mass is less than twice of the outage in comparison set,
It is twice of difference, then empties oiling set and the label that refuels;Judge whether is abnormal oil mass in abnormal oil consumption set Less than the one third for comparing the outage in set;It is the one third of difference, then the data compared in set is stored in and is refueled Set, and the label mark that will refuel is labeled as refueling, and empties abnormal oil consumption set and abnormal oil consumption label, empties comparison and gathers only Retain the last item data;It is not the one third of difference, then empties abnormal oil consumption set and abnormal oil consumption label, empty comparison collection It closes and only retains the last item data;
Be not difference twice, then judge compare set in the first data and the last item data time interval whether Greater than two minutes, it is not more than two minutes, then the data compared in set is added to oiling set, empty comparison set, only protect Stay the last item data;Be greater than two minutes, then judge the abnormal oil mass in abnormal oil consumption set whether more than 5L, and not False abnormal data;It is no, then it empties oiling set and the label that refuels, empties abnormal set and abnormal oil consumption label, empty exception False mark empties comparison set, only retains the last item data;It is to save abnormal oil consumption data, and empty oiling set and add Oil ga(u)ge note empties abnormal oil consumption set and abnormal oil consumption label, empties abnormal false mark, empty comparison set, only retain last One data;
It is to refuel;Then judge that abnormal oil consumption marks whether to be labeled as exception, it is no, the last item number compared in set It refuels and gathers according to deposit, empty comparison set, only retain the last item data;It is to judge whether that persistent anomaly oil consumption label is It is no be it is true,
Whether the data that persistent anomaly oil consumption is labeled as very then taking out in set of refueling calculate volume read-out, further take out different Often the data in set calculate abnormal amount;Judge whether abnormal oil mass is greater than the half of volume read-out;
It is greater than the half of volume read-out, then judges whether abnormal oil mass is greater than 1.5 times of volume read-out, it is no, then empty oiling collection Conjunction and the label that refuels empty abnormal oil consumption set and abnormal oil consumption label, empty whether persistent anomaly oil consumption marks;It is to judge Whether abnormal oil mass value is greater than 5 liters, no, then empties oiling set and the label that refuels, and empties abnormal oil consumption set and abnormal oil consumption Label empties whether persistent anomaly oil consumption marks;It is then to save abnormal oil mass information, and empty oiling set and the label that refuels, Abnormal oil consumption set and abnormal oil consumption label are emptied, empties whether persistent anomaly oil consumption marks;
It is not greater than the half of volume read-out, empties abnormal oil consumption set and abnormal oil consumption label, judges in oiling set Whether volume read-out is between 5L to 20L;It is no, then oil-filling data is saved, and empty oiling set, oiling label is emptied, oiling Last two data be saved in oiling set in, oiling aggregated label be refuel;It is the data then traversed in set of refueling, Data and subsequent data that adjacent two datas oil mass variation is greater than 3L are taken out, set empties refueling, the number just taken out Gather according to being assigned to refuel;Judge refuel set in data whether more than 1, it is no, then empty oiling set, empty refueling mark Note is saved in last two data of oiling in oiling set, and oiling aggregated label is to refuel;It is then to judge set of refueling In the first data speed and the data preceding data speed, if be all 0, it is no, then empty oiling set and add Oil ga(u)ge note, and oiling set is emptied, oiling label is emptied, last two data of oiling is saved in oiling set, is refueled Aggregated label is to refuel;Be then judge refuel set in the last item data time and the first data time difference whether More than half an hour, be, then it is no without operation, then volume read-out information is saved, and empty oiling set, empties oiling label, Last two data of oiling is saved in oiling set, oiling aggregated label is to refuel;And comparison set is emptied, last One data is put into comparison set, empties whether persistent anomaly oil consumption marks;And enters set addition of refueling and compare in set most The link of latter data;
Whether persistent anomaly oil consumption label is not true, then the last item data in set of refueling addition comparison set;
Judge whether the volume read-out in oiling set is greater than the half of the abnormal amount in abnormal oil consumption set,
It is half, then judges whether 1.5 times of the abnormal oil mass in abnormal oil consumption set are greater than the oiling in set of refueling Amount is then to empty oiling set, empties oiling label, and empty abnormal oil consumption set, empties abnormal oil consumption label, empties ratio To set, only retain the last item data;It is no, then abnormal oil consumption set is emptied, abnormal oil consumption label is emptied, empties comparison collection It closes, only retains the last item data;
It is not half, then judges the time difference of the last item data and the first data in oiling set whether more than 2 Minute, it is no, then comparison set is emptied, the last item data are only saved;It is then to empty abnormal oil consumption set, empties oiling set, Abnormal oil consumption label is emptied, oiling label is emptied, and empties comparison set, only saves the last item data;
When the allowance data in C are less than the allowance data in B: emptying the interim time started, judge abnormal oil consumption Mark whether exception,
Be not it is abnormal, then judge to refuel mark whether be it is true,
The label that refuels be not it is true, then judge to compare set whether oil difference is more than 15L end to end, it is no, then empty comparison and gather, Only retain the last item record;It is that the data compared in set are then added to abnormal oil consumption set, labeled as abnormal;And it is clear Sky compares set, only retains the last item record;
It refuels labeled as very, judges whether the oil mass of abnormal oil consumption set is greater than the half for the oil mass that oiling is gathered,
It is not half, then judges that data time interval is no whether more than 2 minutes end to end in comparison set, compares set number It according to abnormal set is added, compares set and only retains the last item data, if persistent anomaly oil consumption label is set to true;It is then to sentence Break and refuel the oil mass in gathering whether between 3L to 20L, is then to filter out adjacent data outage in oiling set to be lower than 3L Data, if judgement refuel set in the first data speed be not zero or a upper data for the first data not It is zero, then empties oiling set and the label that refuels, if oiling collective data is less than half an hour, saves oiling information, and clear Sky refuels to gather and refuel and mark, and empties comparison set, only reservation the last item data;It is no, then oiling information is saved, is emptied Set of refueling and the label that refuels, empty comparison set, only retain the last item data;
For half, then judge whether the oil mass of abnormal oil consumption set is greater than 3 times of the oil mass for set of refueling,
It is not 3 times, then empties oiling set and the label that refuels, empties abnormal oil consumption set and abnormal oil consumption label, judgement Compare set in last two data outage whether be greater than 15L and before oiling set in oil mass whether be greater than 3L;It is no, then comparison set is emptied, the last item data are only retained;It is that abnormal oil consumption then is added in the data compared in set Set, and labeled as exception, abnormal false mark is set to very, and empties comparison set, only retains the last item data;
It is 3 times, then judges whether the oil mass of abnormal oil consumption set is greater than 15L, it is no, then empty oiling set and refueling mark Note empties comparison set, only retains the last item data, be, then the data compared in set is added to abnormal oil consumption collection In conjunction, labeled as abnormal, if persistent anomaly oil consumption label empties oiling set and the label that refuels labeled as sky, empties ratio To set, only retain the last item data;
It is exception, then judging to refuel marks whether to refuel,
Not to refuel, then judges to compare whether the speed of the last item data in set is 0, be that then the data are added Abnormal oil consumption set, it is no, then judge whether oil mass is greater than 5L in abnormal oil consumption set, it is no, then empty abnormal oil consumption set, exception Oil consumption label, abnormal false mark, compare set and only retain the last item data;Being is not then 0 speed in abnormal oil consumption set Data filtering fall, judge in abnormal oil consumption set that oil mass is greater than 5L, and abnormal false mark is sky, it is no, then empty abnormal oil consumption Set, abnormal oil consumption label, abnormal false mark, compare set and only retain the last item data;Be then save exception information, and Abnormal oil consumption set, abnormal oil consumption label, abnormal false mark are emptied, set is compared and only retains the last item data;
To refuel, then judge whether persistent anomaly oil consumption mark whether be it is true,
It is not very, to judge whether the oil mass in oiling set is greater than the half of oil mass in abnormal oil consumption set, is then to empty Set of refueling and the label that refuels, empty abnormal oil consumption set and abnormal marking, abnormal false mark empties, and comparison collective data is added Enter abnormal oil consumption set, empties comparison set, only retain the last item data;It is no, then empty oiling set and the label that refuels; Judge whether the oil mass in abnormal oil consumption set is greater than 5L;
Be greater than 5L, then judging whether that persistent anomaly oil consumption marks whether is very, to be, then it is no without operation, then different Speed is not that 0 data filtering falls in normal oil consumption set, judge abnormal oil consumption collective data be more than one and oil mass greater than 5L and Abnormal false mark is sky;It is no, then it empties oiling set and the label that refuels, empties abnormal oil consumption set and abnormal oil consumption label, it is different Often false mark empties, and will compare collective data and abnormal oil consumption set is added, and labeled as exception, empty comparison set, only protect Stay last data;Be then save exception information, and empty oiling set and refuel label, empty abnormal oil consumption set and Abnormal oil consumption marks, and abnormal false mark empties, and will compare collective data and abnormal oil consumption set is added, and labeled as exception, empty Set is compared, the last item data are only retained;
It is not greater than 5L, then empties abnormal oil consumption set, abnormal oil consumption label, abnormal false mark, judges to compare in set Whether the outage of last two data is greater than 15L, no, then empties comparison set, only retain the last item data, be, then The data compared in set are added to abnormal oil consumption set, labeled as exception, and labeled as abnormal false mark, and empty comparison Set only retains the last item data;
It is very, abnormal oil consumption set to be added the last item data in set are compared, judges different in abnormal oil consumption set Whether normal oil mass is greater than the half of the oil mass in set of refueling,
It is half, 1.5 times of the oil mass whether abnormal oil mass in abnormal oil consumption set is greater than in set of refueling is judged, It is then to empty oiling set and the label that refuels, empties comparison set, compare set and only retain the last item data, if continue Abnormal oil consumption label empties;It is no, then it empties oiling set and the label that refuels, empties abnormal oil consumption set and abnormal oil consumption label, Judge whether the outage for comparing last two data of set is greater than 15L, it is no, then comparison set is emptied, set is compared and only protects Stay the last item data, if persistent anomaly oil consumption label is set to sky, is, then the data compared in set is added to abnormal oil consumption In set, and abnormal oil consumption is set labeled as exception, and false anomaly label is set as true, and empties comparison set, comparison set Only retain the last item data, if persistent anomaly oil consumption label is set to sky;It refuels to mark into judgement and be marked with abnormal oil consumption It is simultaneously genuine link;
It is not half, judge that oiling label is marked with abnormal oil consumption is very, to judge last in abnormal oil consumption set simultaneously Whether the time difference of item and the first data is greater than 4 minutes, no, is then to empty abnormal oil consumption set and exception without operation Oil consumption label, setting false anomaly empty comparison set, only retain the last item data labeled as sky;Judgement is refueled in set Whether volume read-out is between 5L and 20L;
Not between 5L and 20L, then oiling information is saved, and empties oiling set and the label that refuels, empties comparison set, It only retains the last item data;
Between 5L and 20L, then oiling set is traversed, the oil mass difference of adjacent two data is less than the previous item number of 3L According to filtering out, judges that number of data is no whether more than one in oiling set, then empty oiling set and oiling marks, empty Set is compared, the last item data are only retained;It is then to judge whether the speed of the first data in oiling set is 0, and be somebody's turn to do Whether the speed of a upper data for data is also 0;It is not 0, then empties oiling set and the label that refuels;Judgement, which is refueled, gathers Whether middle number of data is more than one;It is 0, then judges that whether number of data is more than one in oiling set;It is no, then empty oiling Set and the label that refuels, empty comparison set, only retain the last item data;It is then to judge in oiling set two end to end Whether the time difference of data is less than half an hour, no, then empties oiling set and the label that refuels, empty comparison set, only retain The last item data;It is then to save oiling information, and empty oiling set and the label that refuels, empties comparison set, only retain The last item data;
When the allowance data in C are equal to the allowance data in B: judge whether the interim time started is sky, it is no, it opens Time beginning is the interim time started, and the end time is the time for comparing the last item data in set;It is that the time started is set as comparing To the first data time in set, the end time is to compare the last item data time in set;Carry out the judgement time started With the time difference both end times whether more than two minutes;
No more than two minutes, then judge whether the interim time started is empty and has oiling label or abnormal oil consumption to mark, It is that the interim time started is set as the time of the first data in comparison set;It is no, it judges whether there is oiling or has exception Oil consumption;It is no, comparison set is emptied, set is compared and only retains the last item data, be, if existing oiling, and have abnormal oil consumption, Then according to refuel set and abnormal oil consumption set two set in the last item data time which more posteriorly, compare gather Middle the last item data are added in corresponding set;It is without exception oil consumption, then last in set comparing if only refueled The deposit of one data, which is refueled, gathers, if only abnormal oil consumption is not refueled, data is stored in abnormal oil consumption set, and empty Set is compared, set is compared and only retains the last item data;
More than two minutes, then oiling was judged whether there is respectively, if there is abnormal oil consumption,
Judge whether to refuel, it is no, then without operation, be then judge refuel set in oil mass whether 3L to 20L it Between;It is the data that adjacent data outage in set of refueling is lower than 3L then to be filtered out, if judgement is refueled between 3L to 20L The speed of the first data is not zero in set or a upper data for the first data is not zero, then empties oiling set And the label that refuels saves oiling information if oiling collective data is less than half an hour, and empties oiling set and refueling mark Note;It is then to save oiling information between 3L to 20L, and empty oiling set and the label that refuels;
Judge whether abnormal oil consumption, it is no, then without operation, be then judge in abnormal oil consumption set oil mass whether be more than 5L, then without operation, more than 5L, falls the data filtering that speed in abnormal oil consumption set is not 0, judges different not above 5L Whether normal oil mass is more than 5L, and abnormal false mark is sky, then saves exception information, empties abnormal oil consumption set and abnormal oil consumption Label;
Judge whether there is oiling respectively, if after having abnormal oil consumption, empty comparison set, compare set and only retain most Latter data, interim time started empty, if persistent anomaly oil consumption label empties;
When searching loop arrives a last data: judgement is refueled to be labeled as very labeled as true and abnormal oil consumption,
It is not,
Then judge to refuel and be labeled as sky labeled as true and abnormal oil consumption,
Be for it is true and be it is empty, then whether the oil mass in the set that judges to refuel between 3L and 20L;It is between 3L and 20L, then It filters out adjacent data outage in set of refueling and is lower than the data of 3L, if judging the speed of the first data in oiling set It is not zero or a upper data for the first data is not zero, then empty oiling set and the label that refuels, if refueling set Data are less than half an hour, then save oiling information;And empty oiling set and the label that refuels;It is not between 3L and 20L, then to save Oiling information, and empty oiling set and the label that refuels;
Be for it is true and not be for sky, then judge abnormal oil consumption labeled as true and refuel labeled as sky, it is no, then without behaviour Make, be then judge abnormal false mark whether be it is true, it is no, then be then to judge whether oil mass surpasses in abnormal gather without operation 5L is crossed, it is no, then it without operation, is that then the data filtering that speed in abnormal set is not 0 is fallen, whether judges abnormal oil mass More than 5L, and abnormal false mark is sky, then saves exception information, empties abnormal set and abnormal oil consumption label;
It is,
The time for then taking out the last item data in set of refueling, take out the last item data in abnormal oil consumption set when Between;Judge whether refueling time is more early than abnormal time,
It is early, then to empty abnormal oil consumption set and abnormal oil consumption label, abnormal false mark is set to sky;Judgement, which is refueled, gathers In oil mass whether between 3L and 20L;It is then to filter out adjacent data outage in oiling set between 3L and 20L and be lower than The data of 3L, if judgement is refueled, the speed of the first data is not zero or a upper data for the first data in set It is not zero, then empties oiling set and the label that refuels, if oiling collective data saves oiling information less than half an hour, and Empty oiling set and the label that refuels;It is not to save oiling information between 3L and 20L, and empty oiling set and refueling mark Note;
Be not it is early, then empty oiling set and the label that refuels, judge in abnormal oil consumption set oil mass whether more than 5L, it is no, Then without operation, be that then the data filtering that speed in abnormal oil consumption set is not 0 is fallen, judge abnormal oil mass whether be more than 5L, and abnormal false mark is sky, then saves exception information, empties abnormal oil consumption set and abnormal oil consumption label.
The present invention has the advantage that the way of the prior art, it can only be by manually being judged by the curve graph showed And volume read-out is calculated, then judged with the oiling bill being collected into, when vehicle is more, workload will be increased, dropped It is inefficient.The volume read-out information obtained through the invention carries out judgement with the information for the oiling bill for being entered into platform and compares, will It is close with differ biggish oil-filling data and distinguish label, it is very clear;Improve volume read-out statistical accuracy.
Detailed description of the invention
Fig. 1 is that the allowance data in C of the invention are greater than the process signal handled when the allowance data in B Figure.
Fig. 2 is that the allowance data in C of the invention are less than the process signal handled when the allowance data in B Figure.
Fig. 3 is that the allowance data in C of the invention are equal to the process signal handled when the allowance data in B Figure.
Fig. 4 is the flow diagram handled when the present invention is looped through to a last data.
Specific embodiment
Shown in please referring to Fig.1 to Fig.4, a kind of pair of volume read-out data statistics of the invention and volume read-out data exception were carried out The method of filter, the method are by collected volume read-out data, and for statistical analysis in conjunction with vehicle operation data, analysis is adding When oily or oily steathily, the speed of vehicle is 0, and the duration refueled is no more than half an hour, to obtain out volume read-out data, and Automatically the volume read-out information due to collecting inaccuracy in vehicle operation because of fluctuation is filtered.
Wherein, the method specifically:
The collected collected vehicle driving information of volume read-out data combination vehicle-mounted machine of oil mass collector is uploaded together To a remote server;
The data being collected into are taken out from remote server, it is for statistical analysis, obtain volume read-out information;
Steps are as follows for the statistical analysis:
Step 1, initialization one compare set, the process data for comparing set and being used to store comparison;Initialization one adds Oil set and an abnormal oil consumption set;Time label is initialized, the time label is used to record oiling initial time;Initially Change an oiling label, an abnormal oil consumption label and whether persistent anomaly oil consumption marks;The abnormal false mark of initialization one, it is described different Normal false mark is used to record false abnormal oil consumption;An interim time started is initialized, the interim time started is for recording Start refueling time in advance, which is an exchange variable;
Step 2 loops through the data of collection, a data of current collection is put into comparison set, so Judgement is compared to the data compared in set afterwards;
Step 3 judges whether the number of data compared in set is more than or equal to two, if it is less, step 2 is jumped to, Otherwise it takes out the first data in comparison set and is assigned to object A, take out penultimate data and be assigned to object B, take out most The latter data are assigned to object C, judge the relationship of the allowance data in allowance data and B in object C to be added Oil mass data information, and the volume read-out data information of abnormal oil consumption is filtered.
The relationship of allowance data in the judgement object C and the allowance data in B is believed to obtain volume read-out data Breath, and the volume read-out data information of abnormal oil consumption is filtered, specifically:
As shown in Figure 1, when the allowance data in C are greater than the allowance data in B: emptying the interim time started, sentence It is disconnected oiling mark whether for refuel,
It is not to refuel;
Then judge that abnormal oil consumption marks whether as exception, it is no, set of refueling is added the data in gathering are compared, and will add Oil ga(u)ge note empties comparison set, only retains the last item data labeled as refueling;It is the exception judged in abnormal oil consumption set Whether oil mass is less than twice of the outage in comparison set,
It is twice of difference, then empties oiling set and the label that refuels;Judge whether is abnormal oil mass in abnormal oil consumption set Less than the one third for comparing the outage in set;It is the one third of difference, then the data compared in set is stored in and is refueled Set, and the label mark that will refuel is labeled as refueling, and empties abnormal oil consumption set and abnormal oil consumption label, empties comparison and gathers only Retain the last item data;It is not the one third of difference, then empties abnormal oil consumption set and abnormal oil consumption label, empty comparison collection It closes and only retains the last item data;
Be not difference twice, then judge compare set in the first data and the last item data time interval whether Greater than two minutes, it is not more than two minutes, then the data compared in set is added to oiling set, empty comparison set, only protect Stay the last item data;Be greater than two minutes, then judge the abnormal oil mass in abnormal oil consumption set whether more than 5L, and not False abnormal data;It is no, then it empties oiling set and the label that refuels, empties abnormal set and abnormal oil consumption label, empty exception False mark empties comparison set, only retains the last item data;It is to save abnormal oil consumption data, and empty oiling set and add Oil ga(u)ge note empties abnormal oil consumption set and abnormal oil consumption label, empties abnormal false mark, empty comparison set, only retain last One data;
It is to refuel;Then judge that abnormal oil consumption marks whether to be labeled as exception, it is no, the last item number compared in set It refuels and gathers according to deposit, empty comparison set, only retain the last item data;It is to judge whether that persistent anomaly oil consumption label is It is no be it is true,
Whether the data that persistent anomaly oil consumption is labeled as very then taking out in set of refueling calculate volume read-out, further take out different Often the data in set calculate abnormal amount;Judge whether abnormal oil mass is greater than the half of volume read-out;
It is greater than the half of volume read-out, then judges whether abnormal oil mass is greater than 1.5 times of volume read-out, it is no, then empty oiling collection Conjunction and the label that refuels empty abnormal oil consumption set and abnormal oil consumption label, empty whether persistent anomaly oil consumption marks;It is to judge Whether abnormal oil mass value is greater than 5 liters, no, then empties oiling set and the label that refuels, and empties abnormal oil consumption set and abnormal oil consumption Label empties whether persistent anomaly oil consumption marks;It is then to save abnormal oil mass information, and empty oiling set and the label that refuels, Abnormal oil consumption set and abnormal oil consumption label are emptied, empties whether persistent anomaly oil consumption marks;
It is not greater than the half of volume read-out, empties abnormal oil consumption set and abnormal oil consumption label, judges in oiling set Whether volume read-out is between 5L to 20L;It is no, then oil-filling data is saved, and empty oiling set, oiling label is emptied, oiling Last two data be saved in oiling set in, oiling aggregated label be refuel;It is the data then traversed in set of refueling, Data and subsequent data that adjacent two datas oil mass variation is greater than 3L are taken out, set empties refueling, the number just taken out Gather according to being assigned to refuel;Judge refuel set in data whether more than 1, it is no, then empty oiling set, empty refueling mark Note is saved in last two data of oiling in oiling set, and oiling aggregated label is to refuel;It is then to judge set of refueling In the first data speed and the data preceding data speed, if be all 0, it is no, then empty oiling set and add Oil ga(u)ge note, and oiling set is emptied, oiling label is emptied, last two data of oiling is saved in oiling set, is refueled Aggregated label is to refuel;Be then judge refuel set in the last item data time and the first data time difference whether More than half an hour, be, then it is no without operation, then volume read-out information is saved, and empty oiling set, empties oiling label, Last two data of oiling is saved in oiling set, oiling aggregated label is to refuel;And comparison set is emptied, last One data is put into comparison set, empties whether persistent anomaly oil consumption marks;And enters set addition of refueling and compare in set most The link of latter data;
Whether persistent anomaly oil consumption label is not true, then the last item data in set of refueling addition comparison set;
Judge whether the volume read-out in oiling set is greater than the half of the abnormal amount in abnormal oil consumption set,
It is half, then judges whether 1.5 times of the abnormal oil mass in abnormal oil consumption set are greater than the oiling in set of refueling Amount is then to empty oiling set, empties oiling label, and empty abnormal oil consumption set, empties abnormal oil consumption label, empties ratio To set, only retain the last item data;It is no, then abnormal oil consumption set is emptied, abnormal oil consumption label is emptied, empties comparison collection It closes, only retains the last item data;
It is not half, then judges the time difference of the last item data and the first data in oiling set whether more than 2 Minute, it is no, then comparison set is emptied, the last item data are only saved;It is then to empty abnormal oil consumption set, empties oiling set, Abnormal oil consumption label is emptied, oiling label is emptied, and empties comparison set, only saves the last item data;
As shown in Fig. 2, when the allowance data in C are less than the allowance data in B: emptying the interim time started, sentence Disconnected exception oil consumption marks whether exception,
Be not it is abnormal, then judge to refuel mark whether be it is true,
The label that refuels be not it is true, then judge to compare set whether oil difference is more than 15L end to end, it is no, then empty comparison and gather, Only retain the last item record;It is that the data compared in set are then added to abnormal oil consumption set, labeled as abnormal;And it is clear Sky compares set, only retains the last item record;
It refuels labeled as very, judges whether the oil mass of abnormal oil consumption set is greater than the half for the oil mass that oiling is gathered,
It is not half, then judges that data time interval is no whether more than 2 minutes end to end in comparison set, compares set number It according to abnormal set is added, compares set and only retains the last item data, if persistent anomaly oil consumption label is set to true;It is then to sentence Break and refuel the oil mass in gathering whether between 3L to 20L, is then to filter out adjacent data outage in oiling set to be lower than 3L Data, if judgement refuel set in the first data speed be not zero or a upper data for the first data not It is zero, then empties oiling set and the label that refuels, if oiling collective data is less than half an hour, saves oiling information, and clear Sky refuels to gather and refuel and mark, and empties comparison set, only reservation the last item data;It is no, then oiling information is saved, is emptied Set of refueling and the label that refuels, empty comparison set, only retain the last item data;
For half, then judge whether the oil mass of abnormal oil consumption set is greater than 3 times of the oil mass for set of refueling,
It is not 3 times, then empties oiling set and the label that refuels, empties abnormal oil consumption set and abnormal oil consumption label, judgement Compare set in last two data outage whether be greater than 15L and before oiling set in oil mass whether be greater than 3L;It is no, then comparison set is emptied, the last item data are only retained;It is that abnormal oil consumption then is added in the data compared in set Set, and labeled as exception, abnormal false mark is set to very, and empties comparison set, only retains the last item data;
It is 3 times, then judges whether the oil mass of abnormal oil consumption set is greater than 15L, it is no, then empty oiling set and refueling mark Note empties comparison set, only retains the last item data, be, then the data compared in set is added to abnormal oil consumption collection In conjunction, labeled as abnormal, if persistent anomaly oil consumption label empties oiling set and the label that refuels labeled as sky, empties ratio To set, only retain the last item data;
It is exception, then judging to refuel marks whether to refuel,
Not to refuel, then judges to compare whether the speed of the last item data in set is 0, be that then the data are added Abnormal oil consumption set, it is no, then judge whether oil mass is greater than 5L in abnormal oil consumption set, it is no, then empty abnormal oil consumption set, exception Oil consumption label, abnormal false mark, compare set and only retain the last item data;Being is not then 0 speed in abnormal oil consumption set Data filtering fall, judge in abnormal oil consumption set that oil mass is greater than 5L, and abnormal false mark is sky, it is no, then empty abnormal oil consumption Set, abnormal oil consumption label, abnormal false mark, compare set and only retain the last item data;Be then save exception information, and Abnormal oil consumption set, abnormal oil consumption label, abnormal false mark are emptied, set is compared and only retains the last item data;
To refuel, then judge whether persistent anomaly oil consumption mark whether be it is true,
It is not very, to judge whether the oil mass in oiling set is greater than the half of oil mass in abnormal oil consumption set, is then to empty Set of refueling and the label that refuels, empty abnormal oil consumption set and abnormal marking, abnormal false mark empties, and comparison collective data is added Enter abnormal oil consumption set, empties comparison set, only retain the last item data;It is no, then empty oiling set and the label that refuels; Judge whether the oil mass in abnormal oil consumption set is greater than 5L;
Be greater than 5L, then judging whether that persistent anomaly oil consumption marks whether is very, to be, then it is no without operation, then different Speed is not that 0 data filtering falls in normal oil consumption set, judge abnormal oil consumption collective data be more than one and oil mass greater than 5L and Abnormal false mark is sky;It is no, then it empties oiling set and the label that refuels, empties abnormal oil consumption set and abnormal oil consumption label, it is different Often false mark empties, and will compare collective data and abnormal oil consumption set is added, and labeled as exception, empty comparison set, only protect Stay last data;Be then save exception information, and empty oiling set and refuel label, empty abnormal oil consumption set and Abnormal oil consumption marks, and abnormal false mark empties, and will compare collective data and abnormal oil consumption set is added, and labeled as exception, empty Set is compared, the last item data are only retained;
It is not greater than 5L, then empties abnormal oil consumption set, abnormal oil consumption label, abnormal false mark, judges to compare in set Whether the outage of last two data is greater than 15L, no, then empties comparison set, only retain the last item data, be, then The data compared in set are added to abnormal oil consumption set, labeled as exception, and labeled as abnormal false mark, and empty comparison Set only retains the last item data;
It is very, abnormal oil consumption set to be added the last item data in set are compared, judges different in abnormal oil consumption set Whether normal oil mass is greater than the half of the oil mass in set of refueling,
It is half, 1.5 times of the oil mass whether abnormal oil mass in abnormal oil consumption set is greater than in set of refueling is judged, It is then to empty oiling set and the label that refuels, empties comparison set, compare set and only retain the last item data, if continue Abnormal oil consumption label empties;It is no, then it empties oiling set and the label that refuels, empties abnormal oil consumption set and abnormal oil consumption label, Judge whether the outage for comparing last two data of set is greater than 15L, it is no, then comparison set is emptied, set is compared and only protects Stay the last item data, if persistent anomaly oil consumption label is set to sky, is, then the data compared in set is added to abnormal oil consumption In set, and abnormal oil consumption is set labeled as exception, and false anomaly label is set as true, and empties comparison set, comparison set Only retain the last item data, if persistent anomaly oil consumption label is set to sky;It refuels to mark into judgement and be marked with abnormal oil consumption It is simultaneously genuine link;
It is not half, judge that oiling label is marked with abnormal oil consumption is very, to judge last in abnormal oil consumption set simultaneously Whether the time difference of item and the first data is greater than 4 minutes, no, is then to empty abnormal oil consumption set and exception without operation Oil consumption label, setting false anomaly empty comparison set, only retain the last item data labeled as sky;Judgement is refueled in set Whether volume read-out is between 5L and 20L;
Not between 5L and 20L, then oiling information is saved, and empties oiling set and the label that refuels, empties comparison set, It only retains the last item data;
Between 5L and 20L, then oiling set is traversed, the oil mass difference of adjacent two data is less than the previous item number of 3L According to filtering out, judges that number of data is no whether more than one in oiling set, then empty oiling set and oiling marks, empty Set is compared, the last item data are only retained;It is then to judge whether the speed of the first data in oiling set is 0, and be somebody's turn to do Whether the speed of a upper data for data is also 0;It is not 0, then empties oiling set and the label that refuels;Judgement, which is refueled, gathers Whether middle number of data is more than one;It is 0, then judges that whether number of data is more than one in oiling set;It is no, then empty oiling Set and the label that refuels, empty comparison set, only retain the last item data;It is then to judge in oiling set two end to end Whether the time difference of data is less than half an hour, no, then empties oiling set and the label that refuels, empty comparison set, only retain The last item data;It is then to save oiling information, and empty oiling set and the label that refuels, empties comparison set, only retain The last item data;
As shown in figure 3, when the allowance data in C are equal to the allowance data in B: whether judging the interim time started No for sky, the time started is the interim time started, and the end time is the time for comparing the last item data in set;It is to start Time was set as comparing in set the first data time, and the end time is to compare the last item data time in set;Sentenced Whether the time difference both disconnected starting and end times is more than two minutes;
No more than two minutes, then judge whether the interim time started is empty and has oiling label or abnormal oil consumption to mark, It is that the interim time started is set as the time of the first data in comparison set;It is no, it judges whether there is oiling or has exception Oil consumption;It is no, comparison set is emptied, set is compared and only retains the last item data, be, if existing oiling, and have abnormal oil consumption, Then according to refuel set and abnormal oil consumption set two set in the last item data time which more posteriorly, compare gather Middle the last item data are added in corresponding set;It is without exception oil consumption, then last in set comparing if only refueled The deposit of one data, which is refueled, gathers, if only abnormal oil consumption is not refueled, data is stored in abnormal oil consumption set, and empty Set is compared, set is compared and only retains the last item data;
More than two minutes, then oiling was judged whether there is respectively, if there is abnormal oil consumption,
Judge whether to refuel, it is no, then without operation, be then judge refuel set in oil mass whether 3L to 20L it Between;It is the data that adjacent data outage in set of refueling is lower than 3L then to be filtered out, if judgement is refueled between 3L to 20L The speed of the first data is not zero in set or a upper data for the first data is not zero, then empties oiling set And the label that refuels saves oiling information if oiling collective data is less than half an hour, and empties oiling set and refueling mark Note;It is then to save oiling information between 3L to 20L, and empty oiling set and the label that refuels;
Judge whether abnormal oil consumption, it is no, then without operation, be then judge in abnormal oil consumption set oil mass whether be more than 5L, then without operation, more than 5L, falls the data filtering that speed in abnormal oil consumption set is not 0, judges different not above 5L Whether normal oil mass is more than 5L, and abnormal false mark is sky, then saves exception information, empties abnormal oil consumption set and abnormal oil consumption Label;
Judge whether there is oiling respectively, if after having abnormal oil consumption, empty comparison set, compare set and only retain most Latter data, interim time started empty, if persistent anomaly oil consumption label empties;
As shown in figure 4, when looping through to a last data: judgement, which is refueled, to be labeled as true and abnormal oil consumption and is labeled as Very,
It is not,
Then judge to refuel and be labeled as sky labeled as true and abnormal oil consumption,
Be for it is true and be it is empty, then whether the oil mass in the set that judges to refuel between 3L and 20L;It is between 3L and 20L, then It filters out adjacent data outage in set of refueling and is lower than the data of 3L, if judging the speed of the first data in oiling set It is not zero or a upper data for the first data is not zero, then empty oiling set and the label that refuels, if refueling set Data are less than half an hour, then save oiling information;And empty oiling set and the label that refuels;It is not between 3L and 20L, then to save Oiling information, and empty oiling set and the label that refuels;
Be for it is true and not be for sky, then judge abnormal oil consumption labeled as true and refuel labeled as sky, it is no, then without behaviour Make, be then judge abnormal false mark whether be it is true, it is no, then be then to judge whether oil mass surpasses in abnormal gather without operation 5L is crossed, it is no, then it without operation, is that then the data filtering that speed in abnormal set is not 0 is fallen, whether judges abnormal oil mass More than 5L, and abnormal false mark is sky, then saves exception information, empties abnormal set and abnormal oil consumption label;
It is,
The time for then taking out the last item data in set of refueling, take out the last item data in abnormal oil consumption set when Between;Judge whether refueling time is more early than abnormal time,
It is early, then to empty abnormal oil consumption set and abnormal oil consumption label, abnormal false mark is set to sky;Judgement, which is refueled, gathers In oil mass whether between 3L and 20L;It is then to filter out adjacent data outage in oiling set between 3L and 20L and be lower than The data of 3L, if judgement is refueled, the speed of the first data is not zero or a upper data for the first data in set It is not zero, then empties oiling set and the label that refuels, if oiling collective data saves oiling information less than half an hour, and Empty oiling set and the label that refuels;It is not to save oiling information between 3L and 20L, and empty oiling set and refueling mark Note;
Be not it is early, then empty oiling set and the label that refuels, judge in abnormal oil consumption set oil mass whether more than 5L, it is no, Then without operation, be that then the data filtering that speed in abnormal oil consumption set is not 0 is fallen, judge abnormal oil mass whether be more than 5L, and abnormal false mark is sky, then saves exception information, empties abnormal oil consumption set and abnormal oil consumption label.
In short, the volume read-out information obtained through the invention, is judged with the information for the oiling bill for being entered into platform Compare, by it is close with differ biggish oil-filling data and distinguish label, it is very clear;Improve volume read-out statistical accuracy.
The foregoing is merely presently preferred embodiments of the present invention, all equivalent changes done according to scope of the present invention patent with Modification, is all covered by the present invention.

Claims (1)

1. the method that a kind of pair of volume read-out data statistics and volume read-out data exception are filtered, it is characterised in that: the method It is for statistical analysis in conjunction with vehicle operation data for by collected allowance data, analysis when refueling or stealing oil, vehicle Speed is 0, and the duration refueled is no more than half an hour, to obtain out volume read-out data, and is filtered automatically due to vehicle The volume read-out information of inaccuracy is collected in operational process because of fluctuation;The method specifically:
The collected collected vehicle driving information of allowance data combination vehicle-mounted machine of oil mass collector is uploaded to one together Remote server;
The data being collected into are taken out from remote server, it is for statistical analysis, obtain volume read-out information;The volume read-out of acquisition is believed Breath, with the information for the oiling bill for being entered into remote server carry out judgement compare, by it is close with differ biggish oil-filling data Distinguish label;
Steps are as follows for the statistical analysis:
Step 1, initialization one compare set, the process data for comparing set and being used to store comparison;Initialization one, which is refueled, to collect It closes and an abnormal oil consumption set;Time label is initialized, the time label is used to record oiling initial time;Initialization one Label, the abnormal oil consumption of refueling mark and whether persistent anomaly oil consumption marks;The abnormal false mark of initialization one, the exception are false Label is used to record false abnormal oil consumption;An interim time started is initialized, the interim time started is for recording in advance Start refueling time, which is an exchange variable;
Step 2 loops through the data of collection, and a data of current collection is put into comparison set, then right Judgement is compared in the data compared in set;
Step 3 judges whether the number of data compared in set is more than or equal to two, if it is less, jumping to step 2, otherwise It takes out the first data in comparison set and is assigned to object A, take out penultimate data and be assigned to object B, take out last A data are assigned to object C, judge the relationship of the allowance data in allowance data and B in object C to obtain volume read-out Data information, and the volume read-out data information of abnormal oil consumption is filtered;
The relationship of allowance data in the judgement object C and the allowance data in B obtains volume read-out data information, and The volume read-out data information of abnormal oil consumption is filtered, specifically:
When the allowance data in C are greater than the allowance data in B: emptying the interim time started, judging to refuel marks whether To refuel,
It is not to refuel;
Then judge that abnormal oil consumption marks whether as exception, it is no, set of refueling is added in the data compared in set, and by refueling mark Note empties comparison set, only retains the last item data labeled as refueling;It is the abnormal oil mass judged in abnormal oil consumption set Whether compare outage in set twice is less than,
It is twice of difference, then empties oiling set and the label that refuels;Judge whether the abnormal oil mass in abnormal oil consumption set is less than Compare the one third of the outage in set;It is the one third of difference, then the data compared in set is stored in set of refueling, And be labeled as refueling by oiling label mark, and empty abnormal oil consumption set and exception oil consumption label, it empties comparison and gathers only reservation The last item data;It is not the one third of difference, then empties abnormal oil consumption set and abnormal oil consumption label, empty comparison set only Retain the last item data;
It is not twice of difference, then whether the time interval for judging to compare the first data and the last item data in set is greater than Two minutes, it is not more than two minutes, then the data compared in set is added to oiling set, empty comparison set, only retain most Latter data;Be greater than two minutes, then judge abnormal oil mass in abnormal oil consumption set whether more than 5L, and not it is false Abnormal data;It is no, then it empties oiling set and the label that refuels, empties abnormal set and abnormal oil consumption label, empty abnormal false mark Note empties comparison set, only retains the last item data;It is to save abnormal oil consumption data, and empty oiling set and refueling mark Note empties abnormal oil consumption set and abnormal oil consumption label, empties abnormal false mark, empty comparison set, only retain the last item Data;
It is to refuel;Then judge that abnormal oil consumption marks whether to be labeled as exception, it is no, the last item data compared in set are deposited Enter set of refueling, empties comparison set, only retain the last item data;Be judge whether persistent anomaly oil consumption mark whether for Very,
Whether the data that persistent anomaly oil consumption is labeled as very then taking out in set of refueling calculate volume read-out, further take out abnormal collection Data in conjunction calculate abnormal amount;Judge whether abnormal oil mass is greater than the half of volume read-out;
Be greater than the half of volume read-out, then judge whether abnormal oil mass is greater than 1.5 times of volume read-out, it is no, then empty oiling set and Refuel label, empties abnormal oil consumption set and abnormal oil consumption label, empty whether
Persistent anomaly oil consumption label;It is to judge whether abnormal oil mass value is greater than 5 liters, it is no, then empty oiling set and refueling mark Note empties abnormal oil consumption set and abnormal oil consumption label, empties whether persistent anomaly oil consumption marks;It is then to save abnormal oil mass Information, and empty oiling set and the label that refuels, empties abnormal oil consumption set and abnormal oil consumption label, empty whether persistent anomaly Oil consumption label;
It is not greater than the half of volume read-out, empties abnormal oil consumption set and abnormal oil consumption label, judges the oiling in gathering of refueling Whether amount is between 5L to 20L;It is no, then oil-filling data is saved, and empty oiling set, empties oiling label, most oiling Two datas are saved in oiling set afterwards, and oiling aggregated label is to refuel;It is the data then traversed in set of refueling, takes out Adjacent two datas oil mass variation is greater than the data and subsequent data of 3L, and refueling, set is emptied, and the data just taken out are assigned It is worth and gathers to refueling;Judge refuel set in data whether more than 1, it is no, then empty oiling set, empty oiling label, Last two data of oiling is saved in oiling set, oiling aggregated label is to refuel;It is then to judge to refuel the in set The speed of the preceding data of the speed and data of one data, if it is all 0, it is no, then empty oiling set and refueling mark Note, and oiling set is emptied, oiling label is emptied, last two data of oiling is saved in oiling set, set of refueling Labeled as oiling;Be then judge to refuel time and the first data of the last item data in set time difference whether be more than Half an hour is, then no without operation, then saves volume read-out information, and empties oiling set, empties oiling label, adding Last two data of oil is saved in oiling set, and oiling aggregated label is to refuel;And comparison set is emptied, the last item Data are put into comparison set, empty whether persistent anomaly oil consumption marks;And enters set addition of refueling and compare last in set The link of data;
Whether persistent anomaly oil consumption label is not true, then the last item data in set of refueling addition comparison set;
Judge whether the volume read-out in oiling set is greater than the half of the abnormal amount in abnormal oil consumption set,
It is half, then judges whether 1.5 times of the abnormal oil mass in abnormal oil consumption set are greater than the volume read-out in set of refueling, It is then to empty oiling set, empties oiling label, and empty abnormal oil consumption set, empties abnormal oil consumption label, empty comparison collection It closes, only retains the last item data;It is no, then abnormal oil consumption set is emptied, abnormal oil consumption label is emptied, empties comparison set, only Retain the last item data;
Half, then judge refuel set in the last item data and the first data time difference whether more than 2 minutes, It is no, then comparison set is emptied, the last item data are only saved;It is then to empty abnormal oil consumption set, empties oiling set, empty Abnormal oil consumption label, empties oiling label, and empties comparison set, only saves the last item data;
When the allowance data in C are less than the allowance data in B: emptying the interim time started, judge abnormal oil consumption label It is whether abnormal,
Be not it is abnormal, then judge to refuel mark whether be it is true,
The label that refuels be not it is true, then judge to compare set whether oil difference is more than 15L end to end, it is no, then empty comparison and gather, only protect The last item is stayed to record;It is that the data compared in set are then added to abnormal oil consumption set, labeled as abnormal;And empty ratio To set, only retain the last item record;
It refuels labeled as very, judges whether the oil mass of abnormal oil consumption set is greater than the half for the oil mass that oiling is gathered,
It is not half, then judges that data time interval is no whether more than 2 minutes end to end in comparison set, compares collective data and adds Enter abnormal set, compare set and only retain the last item data, if persistent anomaly oil consumption label is set to true;It is that then judgement adds Whether the oil mass in oil set is the number for then filtering out adjacent data outage in set of refueling and being lower than 3L between 3L to 20L According to, if judgement is refueled, the speed of the first data is not zero in set or a upper data for the first data is not zero, Oiling set is then emptied and the label that refuels, if oiling collective data saves oiling information, and empty oiling less than half an hour Set and the label that refuels, empty comparison set, only retain the last item data;It is no, then oiling information is saved, oiling collection is emptied Close and refuel label, empties comparison set, only retains the last item data;
For half, then judge whether the oil mass of abnormal oil consumption set is greater than 3 times of the oil mass for set of refueling,
It is not 3 times, then empties oiling set and the label that refuels, empties abnormal oil consumption set and abnormal oil consumption label, judge to compare The outage of last two data in set whether be greater than 15L and before oiling set in oil mass whether be greater than 3L; It is no, then comparison set is emptied, the last item data are only retained;It is that abnormal oil consumption collection then is added in the data compared in set It closes, and labeled as exception, abnormal false mark is set to very, and empties comparison set, only retain the last item data;
It is 3 times, then judges whether the oil mass of abnormal oil consumption set is greater than 15L, it is no, then empty oiling set and the label that refuels, clearly Sky compares set, only retains the last item data, is, then the data compared in set is added in abnormal oil consumption set, Labeled as exception, if persistent anomaly oil consumption label empties oiling set and the label that refuels labeled as sky, empties comparison collection It closes, only retains the last item data;
It is exception, then judging to refuel marks whether to refuel,
Not to refuel, then judges to compare whether the speed of the last item data in set is 0, be, then the data are added abnormal Oil consumption set, it is no, then judge whether oil mass is greater than 5L in abnormal oil consumption set, it is no, then empty abnormal oil consumption set, abnormal oil consumption Label, abnormal false mark, compare set and only retain the last item data;Being then is not 0 number speed in abnormal oil consumption set According to filtering out, judge in abnormal oil consumption set that oil mass is greater than 5L, and abnormal false mark is sky, it is no, then empty abnormal oil consumption set, Abnormal oil consumption label, abnormal false mark, compare set and only retain the last item data;It is then to save exception information, and empty different Normal oil consumption set, abnormal oil consumption label, abnormal false mark, compare set and only retain the last item data;
To refuel, then judge whether persistent anomaly oil consumption mark whether be it is true,
It is not very, to judge whether the oil mass in oiling set is greater than the half of oil mass in abnormal oil consumption set, is then to empty oiling Set and the label that refuels, empty abnormal oil consumption set and abnormal marking, and abnormal false mark empties, and comparison collective data are added different Normal oil consumption set empties comparison set, only retains the last item data;It is no, then empty oiling set and the label that refuels;Judgement Whether the oil mass in abnormal oil consumption set is greater than 5L;
Be greater than 5L, then judging whether that persistent anomaly oil consumption marks whether is very, to be, then it is no without operation, then abnormal consumption Speed is not that 0 data filtering falls in oil set, judges that abnormal oil consumption collective data is more than one and oil mass greater than 5L and exception False mark is sky;It is no, then it empties oiling set and the label that refuels, empties abnormal oil consumption set and abnormal oil consumption label, it is abnormal false Label empties, and will compare collective data and abnormal oil consumption set is added, and labeled as exception, empty comparison set, only retain most Latter data;It is then to save exception information, and empty oiling set and the label that refuels, empties abnormal oil consumption set and exception Oil consumption marks, and abnormal false mark empties, and will compare collective data and abnormal oil consumption set is added, and labeled as exception, empty comparison Set only retains the last item data;
It is not greater than 5L, then empties abnormal oil consumption set, abnormal oil consumption label, abnormal false mark, judges to compare last in set Whether the outage of two datas is greater than 15L, no, then empty comparison set, only retain the last item data, be, then than Abnormal oil consumption set is added to the data in set, labeled as exception, and labeled as abnormal false mark, and empties comparison collection It closes, only retains the last item data;
It is very, abnormal oil consumption set to be added the last item data in set are compared, judges that the exception in abnormal oil consumption set is oily Whether amount is greater than the half of the oil mass in set of refueling,
It is half, 1.5 times of the oil mass whether abnormal oil mass in abnormal oil consumption set is greater than in set of refueling is judged, are, then It empties oiling set and the label that refuels, empties comparison set, compare set and only retain the last item data, if persistent anomaly consumption Oil ga(u)ge note empties;It is no, then it empties oiling set and the label that refuels, empties abnormal oil consumption set and abnormal oil consumption label, judge ratio Whether 15L is greater than to the outage of last two data of set, it is no, then comparison set is emptied, comparison set only retains last One data, if persistent anomaly oil consumption label is set to sky, is, then the data compared in set is added to abnormal oil consumption set In, and abnormal oil consumption being set labeled as exception, and false anomaly label is set as true, and empties comparison set, comparison set is only protected Stay the last item data, if persistent anomaly oil consumption label is set to sky;It refuels and is marked with abnormal oil consumption label simultaneously into judgement For genuine link;
Half, the label that judges to refuel with abnormal oil consumption label be simultaneously it is true, judge in abnormal oil consumption set the last item with Whether the time difference of the first data is greater than 4 minutes, no, is then to empty abnormal oil consumption set and abnormal oil consumption without operation Label, setting false anomaly empty comparison set, only retain the last item data labeled as sky;Oiling in judgement oiling set Whether amount is between 5L and 20L;
Not between 5L and 20L, then oiling information is saved, and empty oiling set and the label that refuels, empties comparison set, only Retain the last item data;
Between 5L and 20L, then oiling set is traversed, the oil mass difference of adjacent two data is less than the previous data mistake of 3L It filters, judges that number of data is no whether more than one in oiling set, then empty oiling set and oiling marks, empty comparison Set only retains the last item data;It is the speed of the first data in set that then judges to refuel whether is 0, and this number According to a upper data speed whether also be 0;It is not 0, then empties oiling set and the label that refuels;Number in judgement oiling set According to item number whether more than one;It is 0, then judges that whether number of data is more than one in oiling set;It is no, then empty oiling set And the label that refuels, comparison set is emptied, the last item data are only retained;It is then to judge to refuel two data end to end in set Time difference whether be less than half an hour, it is no, then empty oiling set and the label that refuels, empty comparison set, only retain last One data;It is then to save oiling information, and empty oiling set and the label that refuels, empties comparison set, only retain last One data;
When the allowance data in C are equal to the allowance data in B: judge the interim time started whether be it is empty, it is no, when beginning Between be the interim time started, the end time is the time for comparing the last item data in set;It is that the time started is set as comparing collection First data time in conjunction, end time are to compare the last item data time in set;It carries out judging time started and knot Whether the time difference both beam time is more than two minutes;
No more than two minutes, then judge whether the interim time started is empty and has oiling label or abnormal oil consumption label, is to face When the time started be set as comparison set in the first data time;It is no, it judges whether there is oiling or has abnormal oil consumption; It is no, comparison set is emptied, set is compared and only retains the last item data, be, if existing oiling, and have abnormal oil consumption, then root According to refuel set and abnormal oil consumption set two set in the last item data time which more posteriorly, compare set in most Latter data is added in corresponding set;If only refueled, without exception oil consumption, then the last item compared in set Data deposit, which is refueled, gathers, if only abnormal oil consumption is not refueled, data is stored in abnormal oil consumption set, and empty comparison Set compares set and only retains the last item data;
More than two minutes, then oiling was judged whether there is respectively, if there is abnormal oil consumption,
Judge whether to refuel, it is no, then it is then to judge to refuel the oil mass in gathering whether between 3L to 20L without operation; It is then to filter out the data that adjacent data outage in set of refueling is lower than 3L, the set if judgement is refueled between 3L to 20L In the speed of the first data be not zero or a upper data for the first data is not zero, then empty oiling set and add Oil ga(u)ge note saves oiling information if oiling collective data is less than half an hour, and empties oiling set and the label that refuels;It is Between 3L to 20L, then oiling information is saved, and empties oiling set and the label that refuels;
Judge whether abnormal oil consumption, it is no, then it is then to judge that whether oil mass does not have more than 5L in abnormal oil consumption set without operation More than 5L, then without operation, more than 5L, the data filtering that speed in abnormal oil consumption set is not 0 is fallen, judges abnormal oil mass Whether more than 5L, and abnormal false mark is sky, then saves exception information, empties abnormal oil consumption set and abnormal oil consumption label;
Judge whether there is oiling respectively, if after having abnormal oil consumption, empty comparison set, compare set and only retain last Data, interim time started empty, if persistent anomaly oil consumption label empties;
When searching loop arrives a last data: judgement is refueled to be labeled as very labeled as true and abnormal oil consumption,
It is not,
Then judge to refuel and be labeled as sky labeled as true and abnormal oil consumption,
Be for it is true and be it is empty, then whether the oil mass in the set that judges to refuel between 3L and 20L;It is then to be filtered between 3L and 20L Fall the data that adjacent data outage in set of refueling is lower than 3L, the speed of the first data is not in set if judgement is refueled Zero or first the upper data of data be not zero, then oiling set is emptied and the label that refuels, if oiling collective data Less than half an hour, then oiling information is saved;And empty oiling set and the label that refuels;It is not then to save oiling between 3L and 20L Information, and empty oiling set and the label that refuels;
Be for it is true and not be for sky, then judge abnormal oil consumption labeled as true and refuel labeled as sky, it is no, then without operation, be, Then judge abnormal false mark whether be it is true, it is no, then without operation, be then judge in abnormal gather oil mass whether more than 5L, It is no, then without operation, be that then the data filtering that speed in abnormal set is not 0 is fallen, judge abnormal oil mass whether be more than 5L, and abnormal false mark is sky, then saves exception information, empties abnormal set and abnormal oil consumption label;
It is,
The time for then taking out the last item data in set of refueling takes out the time of the last item data in abnormal oil consumption set; Judge whether refueling time is more early than abnormal time,
It is early, then to empty abnormal oil consumption set and abnormal oil consumption label, abnormal false mark is set to sky;Judgement is refueled in set Whether oil mass is between 3L and 20L;It is then to filter out adjacent data outage in set of refueling between 3L and 20L and be lower than 3L's Data, if judgement is refueled, the speed of the first data is not zero in set or a upper data for the first data is not Zero, then oiling set is emptied and the label that refuels, if oiling collective data saves oiling information, and empty less than half an hour Set of refueling and the label that refuels;It is not to save oiling information between 3L and 20L, and empty oiling set and the label that refuels;
Be not it is early, then empty oiling set and the label that refuels, judge in abnormal oil consumption set oil mass whether more than 5L, it is no, then not Operated, be, then the data filtering that speed in abnormal oil consumption set is not 0 is fallen, judge abnormal oil mass whether more than 5L, and And abnormal false mark is sky, then saves exception information, empties abnormal oil consumption set and abnormal oil consumption label.
CN201610527723.6A 2016-07-06 2016-07-06 The method that a kind of pair of volume read-out data statistics and volume read-out data exception are filtered Active CN106204801B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610527723.6A CN106204801B (en) 2016-07-06 2016-07-06 The method that a kind of pair of volume read-out data statistics and volume read-out data exception are filtered

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610527723.6A CN106204801B (en) 2016-07-06 2016-07-06 The method that a kind of pair of volume read-out data statistics and volume read-out data exception are filtered

Publications (2)

Publication Number Publication Date
CN106204801A CN106204801A (en) 2016-12-07
CN106204801B true CN106204801B (en) 2019-07-02

Family

ID=57466200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610527723.6A Active CN106204801B (en) 2016-07-06 2016-07-06 The method that a kind of pair of volume read-out data statistics and volume read-out data exception are filtered

Country Status (1)

Country Link
CN (1) CN106204801B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829569B (en) * 2018-06-14 2021-10-26 苏州途驰安电子科技有限公司 Remaining oil quantity data acquisition method and device based on monitoring mode
CN109839162B (en) * 2019-02-21 2021-02-05 北京三快在线科技有限公司 Method for determining fuel filling amount and automobile
CN110837927B (en) * 2019-11-05 2021-02-12 北京嘀嘀无限科技发展有限公司 Method and device for counting refueling data, storage medium and thermodynamic diagram generation method
CN113438616B (en) * 2021-06-24 2022-09-27 中国工商银行股份有限公司 Bus refueling data processing method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6023667A (en) * 1998-03-12 2000-02-08 Johnson; Edward Oil burner motor and refrigeration and air conditioning motor diagnostic apparatus
CN102798421A (en) * 2012-08-20 2012-11-28 深圳市长宇电器有限公司 Method and device for obtaining abnormal oil mass data of car
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
CN104132704A (en) * 2014-07-16 2014-11-05 深圳市凯伦圣科技有限公司 Fuel consumption analysis method and system
CN104217471A (en) * 2014-09-03 2014-12-17 上海大众汽车有限公司 Oil filling counting method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6023667A (en) * 1998-03-12 2000-02-08 Johnson; Edward Oil burner motor and refrigeration and air conditioning motor diagnostic apparatus
CN102798421A (en) * 2012-08-20 2012-11-28 深圳市长宇电器有限公司 Method and device for obtaining abnormal oil mass data of car
CN103838983A (en) * 2014-03-27 2014-06-04 交通运输部科学研究院 Method for metering vehicle oil charge
CN104132704A (en) * 2014-07-16 2014-11-05 深圳市凯伦圣科技有限公司 Fuel consumption analysis method and system
CN104089667A (en) * 2014-07-24 2014-10-08 交通运输部科学研究院 Vehicle oil consumption measuring method
CN104217471A (en) * 2014-09-03 2014-12-17 上海大众汽车有限公司 Oil filling counting method and system

Also Published As

Publication number Publication date
CN106204801A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106204801B (en) The method that a kind of pair of volume read-out data statistics and volume read-out data exception are filtered
CN103135515B (en) Diagnostic method for vehicle condition
CN1826514B (en) Vehicular diagnostic method, vehicular diagnostic system, vehicle and center
CN109765883A (en) Distribution power automation terminal evaluation of running status and method for diagnosing faults
CN201681298U (en) On-board remote data acquisition system based on CAN bus
CN101477371A (en) Apparatus and method for reading, recording and analyzing data of vehicle electric control system
CN104732762B (en) Traffic abnormal road section probability identification method
CN101853021A (en) Vehicle remote data acquisition system based on CAN (Controller Area Network) bus
CN201657031U (en) Vehicle running information acquisition system based on CAN bus
CN102436720A (en) Repeated alarm processing method based on data filtering
CN103727991B (en) Vehicle fuel tank fuel quantity calibration system and scaling method
CN106601005B (en) A kind of municipal intelligent traffic abductive approach based on RFID and wechat platform
CN104700303A (en) Enterprise tax dodge monitoring method through direction analysis of goods flow from added-value tax invoices
CN102866942B (en) A kind of software service quality control method based on Bayesian inference and system
CN106640305A (en) Monitoring system and method for vehicle emission control aftertreatment device
CN107831718A (en) A kind of vehicle exhaust method for managing and monitoring
CN106846097A (en) Rent based on bluetooth communication is returned the car and Intelligent parking system and method
CN110107387A (en) DPF system OBD method for diagnosing faults based on machine oil quality sensor
CN106323396B (en) Oiling event authenticity identification method and its device
CN205367713U (en) Remote monitoring device of filling station
CN115822765A (en) Typical fault diagnosis system and method for diesel vehicle particulate matter trap DPF
CN110166972B (en) Intelligent sensing system with block chain module
CN114954088A (en) Fault warning method for charging equipment
DE102011105549B4 (en) Method for evaluating a particulate filter
CN112699490B (en) Vehicle maintenance result verification method and device

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Wufeng Street software Avenue Gulou District of Fuzhou city in Fujian province 350000 No. 89 Building No. 12

Patentee after: China Electric fufu Mdt InfoTech Ltd

Address before: Wufeng Street software Avenue Gulou District of Fuzhou city in Fujian province 350000 No. 89 Building No. 12

Patentee before: Fujian Fushitong Information Software Co.,Ltd.