Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
In order to improve traffic information predicting result's reliability, the embodiment of the invention provides event-handling method in a kind of historical traffic information, and is as shown in Figure 1, comprising:
101, from the traffic flow historical data, obtain unusual traffic data and normal traffic data;
Wherein, Said " traffic flow historical data " is main through resultant to handling like various raw data that collect such as floating car data, coil data, video datas, and its content is included in the data of reaction road travelling characteristics such as required time of certain time period certain road of interior vehicle process or travel speed.In addition; Back literary composition described " event history data " is through the traffic data through strict examination that obtains like manual types such as camera inquiry, broadcast listening, site searches, and it has comprised the information such as time, position, event type and event content that incident takes place.
For example; From the traffic flow historical data base, read the traffic flow historical data; According to characteristic day and time band the traffic characteristic information in the traffic flow historical data (like hourage and travel speed) is analyzed; The sample numerical value of traffic characteristic information is belonged to the outer traffic flow historical data of range of normal value as unusual traffic data, and the traffic flow historical data except that unusual traffic data is the normal traffic data.For example; Travel speed sample to road is analyzed; With the travel speed sample point of substantial deviation average as exceptional value; All the other travel speed sample points are as normal value, and the travel speed sample point is that the traffic flow historical data of exceptional value is unusual traffic data so, and the travel speed sample point is that the traffic flow historical data of normal value is the normal traffic data.
102, condition is obtained traffic event data from said unusual traffic data according to the rules;
In said unusual traffic data, some data is because of the causing of traffic events, and some data is because the precision problem that systematic error occurs.Because of the unusual traffic data that generation produced of traffic events has implied event information, be called traffic event data in these data with these implicit event informations.
For example,, and can there be certain duration and coverage, therefore, can judge traffic event data from these three aspects owing to happening suddenly of traffic events.
Sudden can the definition according to the saltus step of average overall travel speed on surrounding time of road.For example, obtain the unusual traffic data of investigating road R1 in the abnormal time section T1.Confirm first period of supervision in the abnormal time section T1, with first period of supervision as current period.Wherein, period of supervision is meant the unit interval band of gathering the traffic flow historical data.Confirm the period of supervision of the specified quantity before the current period, with the period of supervision of confirming as the historical cycle.Unusual traffic data according to the current period of investigating road R1 obtains the current average overall travel speed V 1 that investigates road R1, and, obtain the historical average overall travel speed V2 that investigates road R1 according to the normal traffic data in the historical cycle of investigating road R1.At V1-V2>A, and (V1-V2)/V1>B, it is sudden to think that the road traffic state of investigating road R1 occurs, and the unusual traffic data of promptly investigating road R1 in the abnormal time section T1 has sudden.Wherein, A is the relative changing value, and B is the absolute change value, and the value of A and B can change according to setting.
Continuation from the time viewpoint definition characteristic that occurs of incident, incident generally can continue a period of time.For example, suppose that incident generally can continue C minute, be higher than C minute, confirm that then the unusual traffic data of investigating road R1 in the abnormal time section T1 has continuation if investigate the unusual duration of sample value of road.If the duration is less than C minute, can think that then this unusual traffic data is because the data exception that systematic error or error originated from input cause.
Because city road network is an integral body, Traffic Anomaly appears in certain bar road, can the distribution of the flow of its adjacent road be exerted an influence; Form certain range of influence; Therefore, spatiality is meant the coverage the when time takes place, and can define through the quantity that influences adjacent road.For example; Obtain the unusual traffic data of investigating the adjacent road of road R1 in the abnormal time section T1; When the unusual traffic data of confirming these adjacent road according to said method has sudden and continuation, with said adjacent road as the road that influenced by said investigation road.And, when the road quantity of being investigated road R1 and influencing is higher than specified quantity D, confirm that the unusual traffic data of investigating road R1 in the abnormal time section T1 has spatiality.
Have suddenly during at the unusual traffic data of confirming in the abnormal time section T1 to investigate road R1 according to the following formula method simultaneously, this unusual traffic data is extracted as the traffic event data of investigating road R1 with continuation and spatiality.
In addition, the event history data are event informations of issuing out through after the audit, and reliability is higher, but because factors such as channel of gathering and cost, the coverage rate of event history data is limited.Yet the event history data can test, revise and replenish the traffic event data that extracts, thereby obtain traffic event data more accurately.
Specifically can for, obtain the event history data corresponding with said traffic event data, check said traffic event data whether consistent with said event history data content.When said traffic event data and said event history data content are inconsistent, the content of said traffic event data is revised according to the content of said event history data.Whether the content of check event history data all exists in said traffic event data.If there is not the content of event history data in the said traffic event data, with said non-existent event history data as traffic event data.
103, obtain event information according to said traffic event data and said normal traffic data.
Wherein, said event information comprises incident zero-time, road number, category of roads, events affecting degree, incident duration and events affecting scope etc.
For example, obtain the unusual zero-time of sample value according to said traffic event data, promptly road traffic state produces the time of saltus step, with the unusual zero-time of said sample value as incident zero-time T.Road number N and the category of roads L of the road that event information takes place of the road of event information confirm to take place according to said traffic event data; When the road that event information takes place is analyzed; Sudden change to the road traffic state that receives this events affecting was analyzed with the unusual duration, the road traffic state sudden change is created in downstream (time that road traffic state produces saltus step the earliest) and sudden change road the most serious (the historical average overall travel speed V2 of current average overall travel speed V1-is maximum with the value of (the historical average overall travel speed V2 of current average overall travel speed V1-)/current average overall travel speed V1), that the unusual duration is the longest as the incident occurrence positions.
Events affecting degree Y
DegreeThe intensity of variation of the road traffic state that (t) causes for incident is the function of incident duration.It can obtain according to the unusual average velocity in the regulation moment that is obtained by traffic event data and by the regulation normal average velocity constantly that the normal traffic data obtain.For example, try to achieve events affecting degree Y with following formula
Degree(t):
Wherein, unusual average velocity v
Incident(t) be the average velocity of investigating highway section R according to the t that said traffic event data is obtained constantly, promptly the average velocity that back t investigates highway section R constantly takes place in incident, and normal average velocity v
Normally(t) investigate the average velocity of highway section R constantly for the t that obtains according to said normal traffic data, promptly no traffic events t investigates the average velocity of road R1 constantly under the normal condition.
Because the time of the road traffic state ANOMALOUS VARIATIONS that incident causes; And the duration of each road in the involved area is inconsistent; Therefore, need obtain incident generation time and incident resolution time, wherein; The incident generation time is the time that the traffic behavior of incident occurrence positions is undergone mutation, and the incident resolution time is the time that every road in the involved area all returns to normal condition.Just can obtain incident duration Y according to this incident generation time and incident resolution time
Time(r).
Obtain affected road scope in the said traffic event data, use the radius that influences with respect to the incident occurrence positions of receiving to represent, with said road scope as events affecting scope Y
Scope(t), and, events affecting scope Y
Scope(t) also be incident duration Y
Time(r) function.
Set up event information database by the way; Can adopt look-up table is condition query incident duration and events affecting scope with events affecting degree, incident zero-time and category of roads; It is event on corresponding different time, the different brackets road; Under certain influence degree, the duration and the coverage of this incident of inquiry from database.Can the traffic parameter predicted value in the short-term forecasting be adjusted according to these two values.
Event-handling method in the historical traffic information that the embodiment of the invention provides; Through from the traffic flow historical data, obtaining unusual traffic data and normal traffic data; Condition is obtained traffic event data from said unusual traffic data according to the rules, and obtains event information according to said traffic event data and said normal traffic data, and these event informations can well react the sporadic of transport information; Therefore; Can utilize the event information that obtains that the traffic parameter predicted value in the short-term forecasting is adjusted, thereby, traffic information predicting result's reliability can be improved.
With said method accordingly, the embodiment of the invention also provides event processing apparatus in a kind of historical traffic information, and is as shown in Figure 2, comprising:
Historical data acquiring unit 201 is used for obtaining unusual traffic data and normal traffic data from the traffic flow historical data;
Event data acquiring unit 202, the condition that is used for is according to the rules obtained traffic event data from the unusual traffic data that said historical data acquiring unit 201 obtains;
Event information acquiring unit 203, the normal traffic data that traffic event data that is used for obtaining according to said event data acquiring unit 202 and said historical data acquiring unit 201 obtain are obtained event information.
Further, said event data acquiring unit 202 specifically comprises:
Abnormal data obtains subelement, is used to obtain the unusual traffic data of investigating road in the abnormal time section;
Sudden judgment sub-unit; Be used for difference at the current average overall travel speed of said investigation road and historical average overall travel speed greater than the relative changing value; And the ratio of said difference and said current average overall travel speed judges that the unusual traffic data of said investigation road in the said abnormal time section has sudden during greater than the absolute change value;
The continuation judgment sub-unit is used for when the unusual duration of sample value of said investigation road is higher than the stipulated time, judging that the unusual traffic data of said investigation road in the said abnormal time section has continuation;
The spatiality judgment sub-unit is used for when the road quantity that influenced by said investigation road is higher than specified quantity, judges that the unusual traffic data of said investigation road in the said abnormal time section has spatiality;
Event data is confirmed subelement; Be used for judging that in said sudden judgment sub-unit said unusual traffic data has sudden; And said continuation judgment sub-unit judges that said unusual traffic data has continuation; And said continuation judgment sub-unit judges when said unusual traffic data has spatiality, with the unusual traffic data of said investigation road in the said abnormal time section traffic event data as said investigation road.
Further, said sudden judgment sub-unit comprises:
The current period determination module is used for confirming first period of supervision in the said abnormal time section, with said first period of supervision as current period;
Historical period determination module is used for confirming the period of supervision of the specified quantity before the said current period, with the period of supervision of confirming as the historical cycle;
The present speed acquisition module is used for obtaining according to the unusual traffic data of the current period of said investigation road the current average overall travel speed of said investigation road;
The historical speed acquisition module is used for obtaining according to the normal traffic data in historical cycle of said investigation road the historical average overall travel speed of said investigation road;
Sudden judge module; Be used for difference at the current average overall travel speed of said investigation road and historical average overall travel speed greater than the relative changing value; And the ratio of said difference and said current average overall travel speed judges that the unusual traffic data of said investigation road in the said abnormal time section has sudden during greater than the absolute change value;
Further, said spatiality judgment sub-unit comprises:
The adjacent data acquisition module is used to obtain the unusual traffic data of the adjacent road of said investigation road in the said abnormal time section;
The adjacent road determination module, be used for having at the unusual traffic data of confirming said adjacent road sudden during with continuation, with said adjacent road as the road that influenced by said investigation road;
The spatiality judge module is used for when the road quantity that influenced by said investigation road is higher than specified quantity, judges that the unusual traffic data of said investigation road in the said abnormal time section has spatiality.
Further, event processing apparatus also comprises in the said historical traffic information:
The event history data capture unit is used to obtain the event history data;
The event data amending unit is used for when said traffic event data and said event history data content are inconsistent, according to said event history data said traffic event data being revised;
The event data supplementary units is used for when there is not the content of event history data in said traffic event data, with said non-existent event history data as traffic event data.
Further, said event information acquiring unit 203 comprises:
Zero-time is obtained subelement, be used for obtaining the unusual zero-time of sample value according to said traffic event data, with the unusual zero-time of said sample value as the incident zero-time;
The numbering grade is obtained subelement, is used for confirming the numbering and the grade of said traffic event data road corresponding;
Influence degree is obtained subelement; Be used for obtaining the events affecting degree according to unusual average velocity and normal average velocity; Regulation constantly the average velocity of said unusual average velocity for obtaining according to said traffic event data, regulation constantly the average velocity of said normal average velocity for obtaining according to said normal traffic data;
Duration is obtained subelement, is used for obtaining incident duration according to incident generation incident and incident resolution time;
Coverage is obtained subelement, is used for obtaining the affected road scope of said traffic event data, with said road scope as the events affecting scope.
Event processing apparatus in the historical traffic information that the embodiment of the invention provides; Through from the traffic flow historical data, obtaining unusual traffic data and normal traffic data; Condition is obtained traffic event data from said unusual traffic data according to the rules, and obtains event information according to said traffic event data and said normal traffic data, and these event informations can well react the sporadic of transport information; Therefore; Can utilize the event information that obtains that the traffic parameter predicted value in the short-term forecasting is adjusted, thereby, traffic information predicting result's reliability can be improved.
Below, be that example describes the embodiment of the invention with the traffic information predicting.As shown in Figure 3; From the traffic flow historical data base, read the traffic flow historical data; And this traffic flow historical data carried out statistical study, the statistical nature that obtains unusual traffic data and obtained by the normal traffic data statistics, this statistical nature are mainly used in normal sending out in the property prediction.Wherein, unusual traffic data can extract according to method mentioned above, and can repeat no more at this referring to prior art according to the method that the normal traffic data obtain statistical nature.From the incident historical data base, read the event history data, the unusual traffic data that statistical study obtains is tested, revised and replenishes with these event history data.After unusual traffic data having been carried out correction and having replenished; As shown in Figure 4; According to method mentioned above judge whether unusual traffic data sudden, continuation and spatiality, if unusual traffic data satisfies this three conditions simultaneously, then unusual traffic data is a traffic event data; According to method mentioned above this traffic event data is carried out statistical study, obtain incident zero-time, category of roads, road number, events affecting degree, incident duration and events affecting scope.In the process of carrying out sporadic prediction, utilize incident zero-time, category of roads and events affecting degree query time duration and events affecting scope, as shown in Figure 5.
When carrying out traffic information predicting according to the method described above; Through from the traffic flow historical data, obtaining unusual traffic data, and utilize the event history data that said unusual traffic data is verified and revisal, condition is obtained traffic event data from said unusual traffic data according to the rules; And obtain event information according to said traffic event data and said normal traffic data; These event informations can well react the sporadic of transport information, therefore, can utilize the event information that obtains that the traffic parameter predicted value in the short-term forecasting is adjusted; Thereby, can improve traffic information predicting result's reliability.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technician who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by said protection domain with claim.