CN106291597A - The monitoring method and apparatus of bus running state - Google Patents
The monitoring method and apparatus of bus running state Download PDFInfo
- Publication number
- CN106291597A CN106291597A CN201510277773.9A CN201510277773A CN106291597A CN 106291597 A CN106291597 A CN 106291597A CN 201510277773 A CN201510277773 A CN 201510277773A CN 106291597 A CN106291597 A CN 106291597A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- point
- queue
- parameter
- labelling point
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/01—Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/13—Receivers
- G01S19/14—Receivers specially adapted for specific applications
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Traffic Control Systems (AREA)
Abstract
The present invention relates to the monitoring method and apparatus of a kind of bus running state.Said method comprising the steps of: obtain the vehicle position information that GPS is uploaded;Corresponding labelling point identification in uplink and downgoing line is respectively obtained according to described vehicle position information coupling;The labelling point identification of the uplink obtained is added first queue, the labelling point identification of the downgoing line obtained is added the second queue;Obtain this according to first queue and the second queue and detect the running state parameter obtained;The traffic direction that vehicle is current is judged according to described running state parameter.The monitoring method and apparatus of above-mentioned bus running state, mated with labelling point in uplink and downgoing line by the vehicle position information that global positioning system is detected, obtain running state parameter, judge that the current traffic direction of vehicle is accurate according to running state parameter, improve the accuracy rate of vehicle traffic direction detection.
Description
Technical field
The present invention relates to data processing field, particularly relate to the monitoring method and apparatus of bus running state.
Background technology
In order to meet most people trip requirements and reduce city environmental pollution, it is provided that bus.Bus
It is usually and runs back and forth between beginning and end, and multiple website is set between beginning and end, with side
Persons who happens to be on hand for an errand take in site location waiting lines.In order to monitor direction and the position that bus travels, traditional
Method is to install GPS (Global Positioning System, GPS) on bus,
Directly uploaded bus directional information by GPS, be coupled to website to the direction determining bus and travelling and position.
But, the method for traditional monitoring bus running, only investigate two the gps data bags received recently,
By the moving direction of the mobile judgement bus of position, easily fluctuate because of GPS and some special roads (as
Viaduct, round etc.) existence of form, the error rate causing detection is higher.
Summary of the invention
Based on this, it is necessary to for the mistake detecting moving direction in the method for traditional monitoring bus running
The problem that rate is higher, it is provided that the monitoring method and apparatus of a kind of bus running state, can improve detection mobile
The accuracy rate in direction.
A kind of monitoring method of bus running state, comprises the following steps:
Obtain the vehicle position information that GPS is uploaded;
Corresponding labelling point in uplink and downgoing line is respectively obtained according to described vehicle position information coupling
Mark;
The labelling point identification of uplink obtained is added first queue, the labelling of downgoing line that will obtain
Point identification adds the second queue;
Obtain this according to first queue and the second queue and detect the running state parameter obtained;
The traffic direction that vehicle is current is judged according to described running state parameter.
A kind of supervising device of bus running state, including:
Position information acquisition module, for obtaining the vehicle position information that GPS is uploaded;
Matching module, for respectively obtaining uplink and downgoing line according to described vehicle position information coupling
In corresponding labelling point identification;
Adding module, the labelling point identification of the uplink for obtaining adds first queue, by obtain
The labelling point identification of downgoing line adds the second queue;
Parameter acquisition module, detects, for obtaining this according to first queue and the second queue, the operation shape obtained
State parameter;
Direction determining module, for judging, according to described running state parameter, the traffic direction that vehicle is current.
The monitoring method and apparatus of above-mentioned bus running state, by vehicle global positioning system detected
Positional information mates with labelling point in uplink and downgoing line, after obtaining the labelling point of correspondence, adds
Enter first queue and second queue of correspondence, obtain running state parameter further according to first queue and the second queue,
Judge, further according to running state parameter, the traffic direction that vehicle is current, queue exist multiple mark tally evidence,
Accurate according to the running state parameter that multiple data obtain, judge that vehicle is current further according to running state parameter
Traffic direction also accurate, improve the accuracy rate of vehicle traffic direction detection, and real-time matching, can be real
The running status of reflection bus.
Accompanying drawing explanation
Figure 1A is the internal structure schematic diagram of terminal in an embodiment;
Figure 1B is the internal structure schematic diagram of server in an embodiment;
Fig. 2 is the flow chart of the monitoring method of bus running state in an embodiment;
Fig. 3 is to obtain this according to first queue and the second queue in an embodiment to detect the operation shape obtained
The concrete steps flow chart of state parameter;
Fig. 4 is to carry out state transition condition and direction schematic diagram between five kinds of states;
Fig. 5 is the structured flowchart of the supervising device of bus running state in an embodiment;
Fig. 6 is the structured flowchart of the supervising device of bus running state in another embodiment;
Fig. 7 is the internal structure block diagram of parameter acquisition module in an embodiment;
Fig. 8 is the structured flowchart of the supervising device of bus running state in another embodiment;
Fig. 9 is the structured flowchart of the supervising device of bus running state in another embodiment.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality
Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein
Only in order to explain the present invention, it is not intended to limit the present invention.
It is appreciated that term used in the present invention " first ", " second " etc. can be used for describing in this article
Various elements, but these elements should not be limited by these terms.These terms are only used for first element with another
One element is distinguished.For example, without departing from the scope of the invention, can be by the first client
End is referred to as the second client, and similarly, the second client can be referred to as the first client.First client
With the second client both clients, but it is not same client.
Figure 1A is the internal structure schematic diagram of terminal in an embodiment.As shown in Figure 1A, this terminal includes leading to
Cross processor, storage medium, internal memory and the network interface of system bus connection, display screen, GPS positioner
And input equipment.Wherein, the storage medium storage of terminal has operating system, also includes a kind of bus running
The supervising device of state, the supervising device of this bus running state is used for realizing a kind of bus running state
Monitoring method.This processor is used for providing calculating and control ability, supports the operation of whole terminal.Terminal
The operation of the supervising device saving as the bus running state in storage medium in provides environment.In terminal
GPS positioner be used for positioning vehicle location, network interface for server carry out network lead to
Letter, as sent the vehicle position information of GPS positioner detection to server, the location that reception server returns
Result etc..The display screen of terminal can be LCDs or electric ink display screen etc., and input equipment can
To be the touch layer covered on display screen, it is also possible to be button, trace ball or the touch-control arranged in terminal enclosure
Plate, it is also possible to be external keyboard, Trackpad or mouse etc..This terminal can be mobile phone, panel computer or
Person's personal digital assistant.It will be understood by those skilled in the art that the structure shown in Figure 1A, be only and this
The block diagram of the part-structure that application scheme is relevant, is not intended that the terminal being applied thereon the application scheme
Restriction, concrete terminal can include than shown in figure more or less of parts, or combine some portion
Part, or there is different parts layouts.
Figure 1B is the internal structure schematic diagram of server in an embodiment.As shown in Figure 1B, this server bag
Include processor, storage medium, internal memory and the network interface connected by system bus.Wherein, this server
Storage medium storage have operating system, data base and the supervising device of bus running state, in data base
Storage has map datum, mark tally evidence, bus uplink and downlink data, frequency threshold value etc.,
The supervising device of this bus running state is applicable to a kind of bus running state of server for realization
Monitoring method.The processor of this server is used for providing calculating and control ability, supports the fortune of whole server
OK.The operation of the supervising device saving as the bus running state in storage medium in this server provides ring
Border.The network interface of this server is connected communication with outside terminal by network for according to this, such as receives
The positional information of the bus that terminal sends and return data etc. to terminal.Server can be with independent clothes
The server cluster of business device or multiple server composition realizes.It will be understood by those skilled in the art that
Structure shown in Figure 1B, is only the block diagram of the part-structure relevant to the application scheme, and it is right to be not intended that
The restriction of the server that the application scheme is applied thereon, concrete server can include that ratio is shown in figure
More or less of parts, or combine some parts, or there is different parts layouts.
Fig. 2 is the flow chart of the monitoring method of bus running state in an embodiment.As in figure 2 it is shown,
The monitoring method of this bus running state, runs on server end or monitoring client, comprises the following steps:
Step 202, obtains the vehicle position information that GPS is uploaded.
Specifically, obtain vehicle position information by GPS alignment system, and vehicle position information is uploaded to
Server or Surveillance center.
Step 204, respectively obtains in uplink and downgoing line corresponding according to this vehicle position information coupling
Labelling point identification.
Specifically, Surveillance center or server safeguard the queue of two GPS location match points, is first
Queue and the second queue.After receiving the vehicle position information that GPS uploads, respectively with uplink and descending
In circuit, labelling point carries out mating the labelling point identification obtaining coupling.Uplink and downgoing line each mean by
According to bus travel direction, define the circuit of beginning and end information.
Labelling point refers to the position sampling point divided in uplink or downgoing line, it is possible to is referred to as geo and (represents
Geography, soil etc.) point.Labelling point identification can be sequence number or the title etc. of labelling point.Each website is also one
Individual labelling point.Straight line can be used to connect between two labelling points.
In one embodiment, the monitoring method of above-mentioned bus running state also includes: the most respectively by upper
Row line and downgoing line are divided into multiple labelling point, and to labelling point each in uplink and downgoing line
The sequence number that configuration is corresponding.
Specifically, uplink and downgoing line are divided into multiple labelling point, uplink and downlink
The quantity of the labelling point on road can be identical, it is possible to different.To in the labelling point in uplink and downgoing line
Labelling point independently distributes the sequence number of correspondence.Such as, from the labelling point of origin-to-destination in uplink
Serial number 0,1,2,3 ..., N, in downgoing line from the labelling point serial number 0 of origin-to-destination, 1,
2、3、……、M.M with N can be identical, it is possible to different.
Step 204 includes: obtain in uplink this vehicle location of distance according to this vehicle position information
Near labelling point, and obtain the sequence number of this labelling point;Downgoing line middle-range is obtained according to this vehicle position information
From the nearest labelling point of this vehicle location, and obtain the sequence number of this labelling point.
Specifically, such as, match the labelling point serial number 7 that this vehicle location of distance in uplink is nearest,
It is fitted on the labelling point serial number 90 that in downgoing line, distance vehicle location is nearest.
Step 206, adds first queue, the downlink that will obtain by the labelling point identification of the uplink obtained
The labelling point identification on road adds the second queue.
Such as, the labelling point identification of the uplink obtained is added in first queue, the sequence in first queue
Number it is 2,3,4,5,6,7.The labelling point identification of the downgoing line obtained is added in the second queue, the
Serial number 95,94,93,92,91,90 in two queues.
Step 208, obtains this according to first queue and the second queue and detects the running state parameter obtained.
Specifically, running state parameter can include representing the first parameter of the trend of this reality, representing vehicle
The second parameter of whether reaching home, represent the 3rd parameter of the trend of vehicle last time, represent what this was estimated
4th parameter of trend.
The trend of vehicle last time is for log history trend.It is also possible to use+1 expression upward trend ,-1
Representing descending trend, 0 represents trendless.
In first queue and the second queue, owing to the labelling point of coupling gradually increases, it is bound to that correspondence occurs
Trend, and the trend of two queues is contrary, to this end, 3 variablees and 1 discreet value can be taken out, 3
Variable is the first parameter, the second parameter and the 3rd parameter, and 1 discreet value is the 4th parameter.
Fig. 3 is to obtain this according to first queue and the second queue in an embodiment to detect the operation shape obtained
The concrete steps flow chart of state parameter, specifically includes:
Step 302, calculates length and the ratio of first queue total length of labelling point in first queue, obtains first
Ratio.
Specifically, the length of labelling point is the number of digit synbol point.First queue can be to be incremented by subsequence, the
Two queues can be the subsequence that successively decreases, and calculates length (i.e. the length of labelling point) and the first team being incremented by subsequence
The ratio of row total length.
Step 304, calculates the length of labelling point and the ratio of the second queue total length in the second queue, obtains second
Ratio.
Specifically, length (i.e. the length of labelling point) and the second queue total length of the subsequence that successively decreases are calculated
Ratio.First queue total length and the second queue total length are identical, and immobilize.
Step 306, compares the size of the first ratio and the size of threshold value, the second ratio and threshold value, if the first ratio
Value is more than threshold value, then it represents that the trend of this reality is uplink trend, if the second ratio is more than threshold value,
The trend then representing this reality is downgoing line trend.
Specifically, threshold value can be 3/4ths or three/second-class, set as the case may be.
Above by the labelling point each GPS location matched, add first queue or the second queue, weight
New calculating first queue and the trend of the second queue, be all the trend of a period of time when judging trend the most every time.
Step 210, judges, according to this running state parameter, the traffic direction that vehicle is current.
Specifically, obtain the traffic direction that running state parameter can judge that vehicle is current, namely up
Direction or down direction.
The monitoring method of above-mentioned bus running state, is believed by vehicle location global positioning system detected
Breath mates with labelling point in uplink and downgoing line, after obtaining the labelling point of correspondence, adds correspondence
First queue and the second queue, obtain running state parameter, then root further according to first queue and the second queue
Judge, according to running state parameter, the traffic direction that vehicle is current, queue exists multiple mark tally evidence, root
The running state parameter obtained according to multiple data is accurate, judges that vehicle is current further according to running state parameter
Traffic direction is also accurate, improves the accuracy rate of vehicle traffic direction detection, and real-time matching, can be the most anti-
Reflect the running status of bus.
In one embodiment, this first parameter, the second parameter, the 3rd parameter and the 4th parameter produce five kinds
State, these five kinds of states include starting point or dead ship condition, normal travel condition, state of reaching home, non-end
Put state, the end turn state of turning around.Constitute state machine by five kinds of states, detect public transport by state machine
Car running status.
Fig. 4 is to carry out state transition condition and direction schematic diagram between five kinds of states.As shown in Figure 4,1 starting point
Or dead ship condition, when there being trend, 2 normal travel condition can be proceeded to, or proceed to 3 and reach home state;
Be in 2 normal travel condition, can way Automatic Cycle in the line, after reaching home, enter and 3 reach home
State, turning around in midway, then enters 4 non-end turn states;When being in 4 non-end turn state, need
Midway is turned around to circulate and is attempted, until it reaches turn around threshold value in midway, and after then turn around in midway, triggering proceeding to 2 automatically
Normal travel condition;It is in 3 and reaches home after state, normally turn around, then enter 5 end turn states,
Automatically trigger after normally turning around and enter 2 normal travel condition;It is in 3 to reach home state, trendless, then
1 starting point or dead ship condition can be entered;It is in 2 normal travel condition, during trendless, enters 1 starting point or stop
Car state.
In conjunction with Fig. 4 key scenes is described:
(1) end turn (state 5), now actual trend is with to estimate trend contrary, and has arrived at
Terminal, the most directly turns around, and state automatically reverts to normal travel condition (state 2).
End turn be the labelling point by judging in first queue or the second queue gradually close to terminal labelling point,
And trend becomes inconspicuous, gradually there is no trend, be now judged as reaching home.Car is lost hair on vehicle
Time because judging to have arrived at terminal, therefore trend from be incremented by become successively decreasing time, at once be judged to turn around,
Need not arrange threshold value judge.
(2) non-end turn (state 4), i.e. midway turn around, now actual trend and to estimate trend contrary,
But without reaching home, not allowing to nod, the weights that turn around are incremented by, and circulation is attempted, if the weights that turn around arrive
Reach frequency threshold value, then turn around, replying state to normal travel condition (state 2);In circulation cut-and-try process,
Return trend is 0.
(3) terminal leaves for parking lot, this scene match state 5 because cannot be distinguished by vehicle turn around or
Leave for parking lot, be therefore mistaken for turning around.It is the most special a kind of state that terminal leaves for parking lot, with normally
The state dispatched a car is consistent, except for the difference that, can stop, just may be used when opening back terminal afterwards after arriving parking lot
Capture the relationship change between variable, it is judged that just turn around for not reaching terminal, now by threshold value
The vehicle that parking lot is opened back can be masked.
(4) starting point is left in parking lot, this scene match state 4, but due to when terminal leaves for parking lot,
Have occurred that the conversion of state 3-5-2, be therefore judged as non-end turn, check threshold value, if threshold value sets
Put rationally, before vehicle reaches starting point, will not turn around;After starting point triggers, state is automatically brought to shape
State 2.
Additionally, key scenes may also include the scene of a lot of bus running, such as, dispatch a car, return the vehicle to the garage and knock off, all
Can be in abstract so far state machine, from a state to the conversion of another kind of state, certain corresponding vehicle runs
Certain scene.Visible, in this state machine, cover bus whole service state, bus travels
Process is the process of mutual round between each state, by this state machine, just can determine that the side of bus
To.
In one embodiment, the monitoring method of above-mentioned bus running state also includes: when vehicle being detected
Traffic direction change, then continue judge the traffic direction that vehicle is current, be carried out continuously default number of times
The judgement of threshold value all shows that vehicle traffic direction changes, then change the traffic direction of vehicle.
Specifically, during frequency threshold value refers to queue (first queue or the second queue) Trend judgement, as
Really trend changes (being become subtracting or being become increasing from subtracting from increasing), changes direction of traffic the most at once, but
Continue to judge next time, if continuous T time (T is frequency threshold value) judges all to show that vehicle traffic direction is sent out
Changing, then change the traffic direction of vehicle.At the diverse location of circuit, frequency threshold value difference is set,
If just having outputed starting point, now it is more likely to be considered what the reasons such as GPS shake or circuit zig zag caused,
Not being really to change travel direction, therefore frequency threshold value setting is bigger, it is not easy to change direction of traffic,
And the most backward, closer to terminal, it is intended to think that the probability turned around that vehicle occurs is increasing, because of this
Number threshold value arranges relatively small, and change direction of traffic also ratio is comparatively fast.
In one embodiment, the monitoring method of above-mentioned bus running state also includes: obtain line marker
The difference of the labelling point of some total length and current matching;Obtain labelling point and the line marker point overall length of current matching
The ratio of degree;The difference of the ratio of acquisition 1 and the labelling point of current matching and line marker point total length, and
Obtain this difference square;Obtain difference and this difference of the labelling point of line marker point total length and current matching
Square product obtain frequency threshold value.
Specifically, by the analysis to non-end turn situation, create following threshold model:
In formula (1), L represents line marker point total length, and X represents the labelling point of current matching.
Can be analyzed using different threshold values to local train and parking lot respectively by threshold model.Local train
With parking lot it is identical in that, vehicle is all not reach home i.e. to turn around, and maximum difference is, stops
Field distance starting point will not be far, and the distance starting point that turns around of local train will not be too near, is therefore processing parking lot
During the vehicle of meeting starting point, because distance starting point is close, therefore frequency threshold value is very big, vehicle open back starting point it
Before, although reality has turned around, but because number of attempt is also not reaching to frequency threshold value, therefore after reaching starting point
This car travel direction will not be changed, but think that this car is not reached home and turn around, mask.
When processing local train, because local train distance starting point is distant, the threshold value calculated is not too large,
And after vehicle truly turns around, number of attempt enough reaches frequency threshold value, therefore can after turning around number of attempt
After reaching frequency threshold value, direction of traffic change being come, monitoring client or server end just can see that this car falls
Head.
In one embodiment, the monitoring method of above-mentioned bus running state also includes: obtain vehicle last time
Traffic direction and position;Obtaining this operation time, the candidates point of this coupling mated with last time
Circuit distance between labelling point;Traffic direction according to vehicle last time and position, this operation time and line
Road distance selects the labelling point mated most from this candidates mated point.
Specifically, after determining vehicle traffic direction by state machine, in addition it is also necessary to be accurately positioned the position at vehicle place
Putting, this part is non-the normally off for processing specific form circuit, such as zig zag, viaduct, loop line etc.
Key, the employing time adds the threshold strategies of two dimensions of distance, behind vehicle spurious matches to two position, choosing
Select matching result.
Such as, obtain last time vehicle traffic direction be up (labelling point sequence number is gradually increased), last time vehicle
Position is at the 15th labelling point, after this GPS reports, matches two positions (candidates point), point
Be not the 17th labelling point and the 30th labelling point, match the reason major part of the two position be due to
Circuit itself is zig zag or viaduct etc., when being optimized game, first considers that (distance is for time and distance
The circuit distance calculated by line style), it is known that the 30th labelling point is apart from farther, if the time is the shortest, then
Vehicle can not arrive 30 the labelling points in ground, the labelling point now selecting the 17th labelling point to be current matching.
Additionally, static data includes storing circuit, all data of website, these part data are initial in system
It is loaded into during change.Dynamic data includes the gps data reported, and within basic every several seconds, reports once.
The mistake of static data can include that mistake occur in the typing mistake that circuit, website are relevant, such as circuit form
By mistake, so there will be that it fails to match, there is no the labelling point mated, it is impossible to judge trend, static state can be monitored
Data exception, revises in time.
For static data and dynamic data, because using real-time matching, by the log history to scene,
Anomaly, the in turn effect of boosting algorithm can be accelerated.
Fig. 5 is the structured flowchart of the supervising device of bus running state in an embodiment.As it is shown in figure 5,
A kind of supervising device of bus running state, including position information acquisition module 510, matching module 520,
Add module 530, parameter acquisition module 540 and direction determining module 550.
Position information acquisition module 510 is for obtaining the vehicle position information that GPS is uploaded.
Specifically, obtain vehicle position information by GPS alignment system, and vehicle position information is uploaded to service
Device or Surveillance center.
Matching module 520 is for respectively obtaining uplink and downgoing line according to this vehicle position information coupling
In corresponding labelling point identification.Specifically, Surveillance center or server safeguard two GPS location couplings
The queue of point, for first queue and the second queue.After receiving the vehicle position information that GPS uploads, respectively
Carry out with labelling point in uplink and downgoing line mating the labelling point identification obtaining coupling.Uplink and
Downgoing line each means according to bus travel direction, defines the circuit of beginning and end information.Labelling point
Refer to the position sampling point divided in uplink or downgoing line, it is possible to be referred to as geo and (represent geographical, soil
Deng) point.Labelling point identification can be sequence number or the title etc. of labelling point.Each website is also a labelling point.
Straight line can be used to connect between two labelling points.Such as match this vehicle location of distance in uplink nearest
Labelling point serial number 7, match the labelling point serial number 90 that in downgoing line, distance vehicle location is nearest.
The labelling point identification adding the module 530 uplink for obtaining adds first queue, will obtain
The labelling point identification of downgoing line add the second queue.
Such as, the labelling point identification of the uplink obtained is added in first queue, the sequence in first queue
Number it is 2,3,4,5,6,7.The labelling point identification of the downgoing line obtained is added in the second queue, the
Serial number 95,94,93,92,91,90 in two queues.
Parameter acquisition module 540 detects, for obtaining this according to first queue and the second queue, the operation obtained
State parameter.
Specifically, running state parameter can include representing the first parameter of the trend of this reality, representing vehicle
The second parameter of whether reaching home, represent the 3rd parameter of the trend of vehicle last time, represent what this was estimated
4th parameter of trend.The trend of vehicle last time is for log history trend.It is also possible to use+1 represents
Upward trend ,-1 represents descending trend, and 0 represents trendless.
In first queue and the second queue, owing to the labelling point of coupling gradually increases, it is bound to that correspondence occurs
Trend, and the trend of two queues is contrary, to this end, 3 variablees and 1 discreet value can be taken out, 3
Variable is the first parameter, the second parameter and the 3rd parameter, and 1 discreet value is the 4th parameter.
Direction determining module 550 is for judging, according to this running state parameter, the traffic direction that vehicle is current.
Specifically, obtain the traffic direction that running state parameter can judge that vehicle is current, namely up
Direction or down direction.
The supervising device of above-mentioned bus running state, is believed by vehicle location global positioning system detected
Breath mates with labelling point in uplink and downgoing line, after obtaining the labelling point of correspondence, adds correspondence
First queue and the second queue, obtain running state parameter, then root further according to first queue and the second queue
Judge, according to running state parameter, the traffic direction that vehicle is current, queue exists multiple mark tally evidence, root
The running state parameter obtained according to multiple data is accurate, judges that vehicle is current further according to running state parameter
Traffic direction is also accurate, improves the accuracy rate of vehicle traffic direction detection, and real-time matching, can be the most anti-
Reflect the running status of bus.
Fig. 6 is the structured flowchart of the supervising device of bus running state in another embodiment.Such as Fig. 6 institute
Show, the supervising device of a kind of bus running state, except including position information acquisition module 510, coupling mould
Block 520, interpolation module 530, parameter acquisition module 540 and direction determining module 550, also include dividing mould
Block 560 and configuration module 570.
Divide module 560 for the most respectively uplink and downgoing line being divided into multiple labelling point.Tool
Body ground, uplink and downgoing line are divided into multiple labelling point, uplink and the mark of downgoing line
The quantity of note point can be identical, it is possible to different.
Configuration module 570 is for the sequence number corresponding to the configuration of each labelling point.To the labelling point in uplink
With the sequence number that the labelling point in downgoing line independently distributes correspondence.Such as, in uplink from starting point to
The serial number 0 of the labelling point of terminal, 1,2,3 ..., N, from the mark of origin-to-destination in downgoing line
Note point serial number 0,1,2,3 ..., M.M with N can be identical, it is possible to different.
Matching module 520 is additionally operable to obtain this vehicle location of distance in uplink according to this vehicle position information
Nearest labelling point, and obtain the sequence number of this labelling point, and obtain descending according to this vehicle position information
The nearest labelling point of this vehicle location of distance in circuit, and obtain the sequence number of this labelling point.Such as match
The labelling point serial number 7 that in uplink, this vehicle location of distance is nearest, matches distance vehicle in downgoing line
The labelling point serial number 90 that position is nearest.
This first parameter, the second parameter, the 3rd parameter and the 4th parameter produce five kinds of states, these five kinds of states
Including starting point or dead ship condition, normal travel condition, state of reaching home, non-end turn state, terminal
Turn around state.Carry out state transition condition and direction such as Fig. 4 between five kinds of states, do not repeat them here.
Fig. 7 is the internal structure block diagram of parameter acquisition module in an embodiment.As it is shown in fig. 7, parameter obtains
Delivery block includes the first ratio calculation unit the 710, second ratio calculation unit 720 and comparing unit 730.
First ratio calculation unit 710 is for calculating the length of labelling point and first queue overall length in first queue
The ratio of degree, obtains the first ratio.
Specifically, the length of labelling point is the number of digit synbol point.First queue can be to be incremented by subsequence, the
Two queues can be the subsequence that successively decreases, and calculates length (i.e. the length of labelling point) and the first team being incremented by subsequence
The ratio of row total length.
Second ratio calculation unit 720 is for calculating the length of labelling point and the second queue overall length in the second queue
The ratio of degree, obtains the second ratio.
Specifically, length (i.e. the length of labelling point) and the second queue total length of the subsequence that successively decreases are calculated
Ratio.First queue total length and the second queue total length are identical, and immobilize.
Comparing unit 730 is used for the size comparing the first ratio with the size of threshold value, the second ratio and threshold value,
If the first ratio is more than threshold value, then it represents that the trend of this reality is uplink trend, if the second ratio is big
In threshold value, then it represents that the trend of this reality is downgoing line trend.
Specifically, threshold value can be 3/4ths or three/second-class, set as the case may be.
Above by the labelling point each GPS location matched, add first queue or the second queue, weight
New calculating first queue and the trend of the second queue, be all the trend of a period of time when judging trend the most every time.
Fig. 8 is the structured flowchart of the supervising device of bus running state in another embodiment.Such as Fig. 8 institute
Show, the supervising device of a kind of bus running state, except including position information acquisition module 510, coupling mould
Block 520, interpolation module 530, parameter acquisition module 540, direction determining module 550, division module 560
With configuration module 570, also include loop detection module 580 and threshold value acquisition module 590.
Loop detection module 580 for when detecting that the traffic direction of vehicle changes, then continues to judge car
Current traffic direction, the judgement being carried out continuously default frequency threshold value all shows that vehicle traffic direction occurs
Change, then change the traffic direction of vehicle.
Specifically, during frequency threshold value refers to queue (first queue or the second queue) Trend judgement, as
Really trend changes (being become subtracting or being become increasing from subtracting from increasing), changes direction of traffic the most at once, but
Continue to judge next time, if continuous T time (T is frequency threshold value) judges all to show that vehicle traffic direction is sent out
Changing, then change the traffic direction of vehicle.At the diverse location of circuit, frequency threshold value difference is set,
If just having outputed starting point, now it is more likely to be considered what the reasons such as GPS shake or circuit zig zag caused,
Not being really to change travel direction, therefore frequency threshold value setting is bigger, it is not easy to change direction of traffic,
And the most backward, closer to terminal, it is intended to think that the probability turned around that vehicle occurs is increasing, because of this
Number threshold value arranges relatively small, and change direction of traffic also ratio is comparatively fast.
Threshold value acquisition module 590 is used for the difference obtaining line marker point total length with the labelling point of current matching,
Obtain the labelling point of current matching and the ratio of line marker point total length, obtain the labelling of 1 and current matching
The difference of point and the ratio of line marker point total length, and obtain this difference square, and acquisition circuit mark
The difference of the labelling point of note point total length and current matching and this difference square product obtain frequency threshold value.
Specifically, by the analysis to non-end turn situation, create following threshold model:
In formula (1), L represents line marker point total length, and X represents the labelling point of current matching.
Can be analyzed using different threshold values to local train and parking lot respectively by threshold model.Local train
With parking lot it is identical in that, vehicle is all not reach home i.e. to turn around, and maximum difference is, stops
Field distance starting point will not be far, and the distance starting point that turns around of local train will not be too near, is therefore processing parking lot
During the vehicle of meeting starting point, because distance starting point is close, therefore frequency threshold value is very big, vehicle open back starting point it
Before, although reality has turned around, but because number of attempt is also not reaching to frequency threshold value, therefore after reaching starting point
This car travel direction will not be changed, but think that this car is not reached home and turn around, mask.
When processing local train, because local train distance starting point is distant, the threshold value calculated is not too large,
And after vehicle truly turns around, number of attempt enough reaches frequency threshold value, therefore can after turning around number of attempt
After reaching frequency threshold value, direction of traffic change being come, monitoring client or server end just can see that this car falls
Head.
Fig. 9 is the structured flowchart of the supervising device of bus running state in another embodiment.Such as Fig. 9 institute
Show, the supervising device of a kind of bus running state, except including position information acquisition module 510, coupling mould
Block 520, add module 530, parameter acquisition module 540, direction determining module 550, divide module 560,
Configuration module 570, loop detection module 580 and threshold value acquisition module 590, also include that vehicle data last time obtains
Delivery block 592, this vehicle data acquisition module 594 and selection module 596.
Last time, vehicle data acquisition module 592 was for obtaining traffic direction and the position of vehicle last time;
This vehicle data acquisition module 594 is used for obtaining this operation time, the candidates of this coupling
Circuit distance between the labelling point that point mated with last time;
Select module 596 for the traffic direction according to vehicle last time and position, this operation time and circuit
Distance selects the labelling point mated most from this candidates mated point.
Specifically, after determining vehicle traffic direction by state machine, in addition it is also necessary to be accurately positioned the position at vehicle place
Putting, this part is non-the normally off for processing specific form circuit, such as zig zag, viaduct, loop line etc.
Key, the employing time adds the threshold strategies of two dimensions of distance, behind vehicle spurious matches to two position, choosing
Select matching result.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method,
Can be by computer program and complete to instruct relevant hardware, described program can be stored in one non-easily
In the property lost computer read/write memory medium, this program is upon execution, it may include such as the enforcement of above-mentioned each method
The flow process of example.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only
Memory, ROM) etc..
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed,
But therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for this area
Those of ordinary skill for, without departing from the inventive concept of the premise, it is also possible to make some deformation and
Improving, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be with appended
Claim is as the criterion.
Claims (14)
1. a monitoring method for bus running state, comprises the following steps:
Obtain the vehicle position information that GPS is uploaded;
Corresponding labelling point in uplink and downgoing line is respectively obtained according to described vehicle position information coupling
Mark;
The labelling point identification of uplink obtained is added first queue, the labelling of downgoing line that will obtain
Point identification adds the second queue;
Obtain this according to first queue and the second queue and detect the running state parameter obtained;
The traffic direction that vehicle is current is judged according to described running state parameter.
Method the most according to claim 1, it is characterised in that described method also includes:
The most respectively uplink and downgoing line are divided into multiple labelling point, and each labelling point is configured
Corresponding sequence number;
Described respectively obtaining in uplink and downgoing line according to described vehicle position information coupling is marked accordingly
The step of note point identification includes:
The nearest labelling of vehicle location described in distance in uplink is obtained according to described vehicle position information
Point, and obtain the sequence number of described labelling point;
The nearest labelling of vehicle location described in distance in downgoing line is obtained according to described vehicle position information
Point, and obtain the sequence number of described labelling point.
Method the most according to claim 1 and 2, it is characterised in that described running state parameter includes
Represent the trend of this reality the first parameter, represent vehicle whether reach home the second parameter, represent car
3rd parameter of the trend of last time, represent the 4th parameter of this trend estimated;Described first parameter,
Second parameter, the 3rd parameter and the 4th parameter produce five kinds of states, and described five kinds of states include starting point or parking
State, normal travel condition, state of reaching home, non-end turn state, end turn state.
Method the most according to claim 3, it is characterised in that described according to first queue with the second team
Row obtain the step of the running state parameter that this detection obtains and include:
Calculate length and the ratio of first queue total length of labelling point in first queue, obtain the first ratio;
Calculate the length of labelling point and the ratio of the second queue total length in the second queue, obtain the second ratio;
Relatively the first ratio and the size of the size of threshold value, the second ratio and threshold value, if the first ratio is more than threshold
Value, then it represents that the trend of this reality is uplink trend, if the second ratio is more than threshold value, then it represents that this
The trend of secondary reality is downgoing line trend.
Method the most according to claim 1, it is characterised in that described method also includes:
When traffic direction vehicle being detected changes, then continue to judge the traffic direction that vehicle is current, even
The judgement of the continuous frequency threshold value carrying out presetting all shows that vehicle traffic direction changes, then change the fortune of vehicle
Line direction.
Method the most according to claim 5, it is characterised in that described method also includes:
Obtain the difference of line marker point total length and the labelling point of current matching;
Obtain the labelling point of current matching and the ratio of line marker point total length;
The difference of the ratio of acquisition 1 and the labelling point of current matching and line marker point total length, and obtain institute
State difference square;
Obtain the labelling point of line marker point total length and current matching difference and described difference square product
Obtain frequency threshold value.
Method the most according to claim 1, it is characterised in that described method also includes:
Obtain traffic direction and the position of vehicle last time;
Obtain this operation time, the line between the labelling point that the candidates point of this coupling mated with last time
Road distance;
Traffic direction according to vehicle last time and position, this operation time and circuit distance are mated from this
Candidates point selects the labelling point mated most.
8. the supervising device of a bus running state, it is characterised in that including:
Position information acquisition module, for obtaining the vehicle position information that GPS is uploaded;
Matching module, for respectively obtaining uplink and downgoing line according to described vehicle position information coupling
In corresponding labelling point identification;
Adding module, the labelling point identification of the uplink for obtaining adds first queue, by obtain
The labelling point identification of downgoing line adds the second queue;
Parameter acquisition module, detects, for obtaining this according to first queue and the second queue, the operation shape obtained
State parameter;
Direction determining module, for judging, according to described running state parameter, the traffic direction that vehicle is current.
Device the most according to claim 8, it is characterised in that described device also includes:
Divide module, for the most respectively uplink and downgoing line being divided into multiple labelling point;
Configuration module, for the sequence number corresponding to the configuration of each labelling point;
Described matching module is additionally operable to obtain vehicle described in distance in uplink according to described vehicle position information
The nearest labelling point of position, and obtain the sequence number of described labelling point, and according to described vehicle position information
Obtain the nearest labelling point of vehicle location described in distance in downgoing line, and obtain the sequence number of described labelling point.
Device the most according to claim 8 or claim 9, it is characterised in that described running state parameter bag
Include represent this reality trend the first parameter, represent vehicle whether reach home the second parameter, expression
3rd parameter of the trend of vehicle last time, represent the 4th parameter of this trend estimated;Described first parameter,
Second parameter, the 3rd parameter and the 4th parameter produce five kinds of states, and described five kinds of states include starting point or parking
State, normal travel condition, state of reaching home, non-end turn state, end turn state.
11. devices according to claim 10, it is characterised in that described parameter acquisition module includes:
First ratio calculation unit, for calculating the length of labelling point and first queue total length in first queue
Ratio, obtain the first ratio;
Second ratio calculation unit, for calculating the length of labelling point and the second queue total length in the second queue
Ratio, obtain the second ratio;
Comparing unit, for comparing the size of the first ratio and the size of threshold value, the second ratio and threshold value, if
First ratio is more than threshold value, then it represents that the trend of this reality is uplink trend, if the second ratio is more than
Threshold value, then it represents that the trend of this reality is downgoing line trend.
12. devices according to claim 8, it is characterised in that described device also includes:
Loop detection module, for when detecting that the traffic direction of vehicle changes, then continues to judge vehicle
Current traffic direction, the judgement being carried out continuously default frequency threshold value all shows that vehicle traffic direction becomes
Change, then change the traffic direction of vehicle.
13. devices according to claim 12, it is characterised in that described device also includes:
Threshold value acquisition module, for obtaining the difference of line marker point total length and the labelling point of current matching, obtains
Take the labelling point of current matching and the ratio of line marker point total length, obtain the labelling point of 1 and current matching
With the difference of the ratio of line marker point total length, and obtain described difference square, and obtain circuit mark
The difference of the labelling point of note point total length and current matching and described difference square product obtain frequency threshold value.
14. devices according to claim 8, it is characterised in that described device also includes:
Last time, vehicle data acquisition module, was used for obtaining traffic direction and the position of vehicle last time;
This vehicle data acquisition module, is used for obtaining this operation time, the candidates point of this coupling
Circuit distance between the labelling point mated with last time;
Select module, for according to the traffic direction of vehicle last time and position, this run time and circuit away from
The labelling point mated most is selected in the candidates point mated from this.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510277773.9A CN106291597B (en) | 2015-05-26 | 2015-05-26 | The monitoring method and device of bus running state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510277773.9A CN106291597B (en) | 2015-05-26 | 2015-05-26 | The monitoring method and device of bus running state |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106291597A true CN106291597A (en) | 2017-01-04 |
CN106291597B CN106291597B (en) | 2019-01-08 |
Family
ID=57635269
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510277773.9A Active CN106291597B (en) | 2015-05-26 | 2015-05-26 | The monitoring method and device of bus running state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106291597B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110706065A (en) * | 2019-09-20 | 2020-01-17 | 北京三快在线科技有限公司 | Order processing method and device, information display method and device and electronic equipment |
CN110929676A (en) * | 2019-12-04 | 2020-03-27 | 浙江工业大学 | A real-time detection method for illegal U-turn based on deep learning |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003044986A (en) * | 2001-07-27 | 2003-02-14 | Toshiba Corp | Method and system for monitoring position of bus in operation |
US6952645B1 (en) * | 1997-03-10 | 2005-10-04 | Arrivalstar, Inc. | System and method for activation of an advance notification system for monitoring and reporting status of vehicle travel |
CN103177561A (en) * | 2011-12-26 | 2013-06-26 | 北京掌城科技有限公司 | Method and system for generating bus real-time traffic status |
CN103310651A (en) * | 2013-05-24 | 2013-09-18 | 北京市交通信息中心 | Bus arrival prediction method based on real-time traffic status information |
CN103413434A (en) * | 2013-08-12 | 2013-11-27 | 上海遥薇(集团)有限公司 | Information processing method suitable for bus operation number real-time statistics |
CN103646540A (en) * | 2013-12-03 | 2014-03-19 | 浙江工业大学 | School bus driving route, direction and station arriving and leaving automatic identification method |
CN104064024A (en) * | 2014-06-23 | 2014-09-24 | 银江股份有限公司 | Public transport vehicle arrival time prediction method based on history data |
-
2015
- 2015-05-26 CN CN201510277773.9A patent/CN106291597B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6952645B1 (en) * | 1997-03-10 | 2005-10-04 | Arrivalstar, Inc. | System and method for activation of an advance notification system for monitoring and reporting status of vehicle travel |
JP2003044986A (en) * | 2001-07-27 | 2003-02-14 | Toshiba Corp | Method and system for monitoring position of bus in operation |
CN103177561A (en) * | 2011-12-26 | 2013-06-26 | 北京掌城科技有限公司 | Method and system for generating bus real-time traffic status |
CN103310651A (en) * | 2013-05-24 | 2013-09-18 | 北京市交通信息中心 | Bus arrival prediction method based on real-time traffic status information |
CN103413434A (en) * | 2013-08-12 | 2013-11-27 | 上海遥薇(集团)有限公司 | Information processing method suitable for bus operation number real-time statistics |
CN103646540A (en) * | 2013-12-03 | 2014-03-19 | 浙江工业大学 | School bus driving route, direction and station arriving and leaving automatic identification method |
CN104064024A (en) * | 2014-06-23 | 2014-09-24 | 银江股份有限公司 | Public transport vehicle arrival time prediction method based on history data |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110706065A (en) * | 2019-09-20 | 2020-01-17 | 北京三快在线科技有限公司 | Order processing method and device, information display method and device and electronic equipment |
CN110929676A (en) * | 2019-12-04 | 2020-03-27 | 浙江工业大学 | A real-time detection method for illegal U-turn based on deep learning |
Also Published As
Publication number | Publication date |
---|---|
CN106291597B (en) | 2019-01-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101657697B (en) | Systems, and methods for generating reference geocodes for point addresses | |
US10794714B2 (en) | Self-driving vehicle systems and methods | |
CN109766777A (en) | Detection method, device, storage medium and the electronic equipment of abnormal track | |
CN106205185A (en) | Managing system of car parking and management method | |
US12281902B2 (en) | Facility management based on cumulative device location data | |
Gramaglia et al. | New insights from the analysis of free flow vehicular traffic in highways | |
CN107018493A (en) | A kind of geographical position Forecasting Methodology based on continuous sequential Markov model | |
CN105243844A (en) | Road state identification method based on mobile phone signal | |
CN110472999B (en) | Passenger flow mode analysis method and device based on subway and shared bicycle data | |
CN106067045A (en) | For the method for gather information in facility, equipment, wireless computer device | |
CN105336097A (en) | Traffic early warning method and device of population movement track | |
CN106595665A (en) | Prediction method for spatial-temporal trajectory of moving object in obstructed space | |
CN108009688A (en) | Assemble event prediction method, apparatus and equipment | |
Ning et al. | Design of accurate vehicle location system using RFID | |
CN109275090A (en) | Information processing method, device, terminal and storage medium | |
CN108513259A (en) | Electronic device, floor location method and computer readable storage medium | |
CN116823572B (en) | Population flow data acquisition method and device and computer readable storage medium | |
CN107966678B (en) | Localization method, electronic device and storage medium based on signal data screening | |
Parada et al. | Machine learning-based trajectory prediction for vru collision avoidance in v2x environments | |
CN109410576A (en) | Road condition analyzing method, apparatus, storage medium and the system of multisource data fusion | |
CN115423735A (en) | Passenger flow volume statistical method and system | |
CN110322687A (en) | The method and apparatus for determining target intersection running state information | |
CN112233428B (en) | Traffic flow prediction method, device, storage medium and equipment | |
Wang et al. | GPS‐data‐driven dynamic destination prediction for on‐demand one‐way carsharing system | |
CN106202113A (en) | It is applied to information providing method and the device forming a team to move |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |