The present invention relates to a vehicle driving information measuring apparatus and method using a sum-of-absolute-difference (SAD) algorithm, and more particularly, to a vehicle velocity and acceleration measuring apparatus and method using two or more sensing units disposed along a driving path of a vehicle.
The vehicle driving information measuring apparatus can be a single-board type measuring apparatus, and can calculate the velocity and acceleration of a vehicle by using a predetermined distance between the sensing units and a vehicle sensing time obtained based on signals sensed by the sensing units.
The present invention is derived from a research project supported by the Information Technology (IT) Research & Development (R&D) program of the Ministry of Information and Communication (MIC) and the Institute for Information Technology Advancement (IITA) [2006-S-024-02, Development of Telematics Application Service Technology based on USN Infrastructure].
Conventional vehicle velocity measuring apparatuses and approaches are described below.
As a first conventional vehicle velocity measuring apparatus, 2-axis fluxgate magnetic sensors are used. Using this approach, a local change in a geomagnetic field caused by a vehicle is sensed by two 2-axis fluxgate magnetic sensors, and a velocity of the vehicle is calculated based on the change in the geomagnetic field.
More specifically, the velocity of the vehicle is calculated by using the changes in the geomagnetic field with respect to time and position.
In a case where a signal of the sensed geomagnetic field contains a lot of noise or in a case where the signal of the sensed geomagnetic field is complex, it is difficult to accurately calculate the velocity of the vehicle. In addition, the fluxgate magnetoresistive sensors consume a lot of power.
As a second conventional vehicle velocity measuring apparatus, magnetoresistive sensors are used.
In a vehicle velocity measuring apparatus using magnetoresistive sensors, a threshold-sensing algorithm for measurement of velocity is used.
However, the threshold sensing algorithm has a problem in that the sensors are separated from each other by a distance of several meters or more in order to accurately measure the velocity. Therefore, it is not easy to construct such a velocity measuring apparatus in an integrated fashion.
As a third conventional vehicle velocity measuring apparatus, two sensors are disposed along a driving path of an object (vehicle) to accurately measure a velocity of the object.
More specifically, a time difference is obtained based on cross-correlation between signals sensed by the consecutive sensors, and the velocity of the vehicle is calculated based on the obtained time difference. However, the third vehicle velocity measuring apparatus cannot be easily adapted to low-grade sensor nodes due to the requirement of a large amount of calculation.
The present invention provides a single-board-type vehicle velocity and acceleration measuring apparatus using a sum-of-absolute-difference (SAD) hardware accelerator having a relatively simple algorithm, and which is capable of accurately measuring the velocity and acceleration of a vehicle in real time.
The present invention also provides a vehicle velocity and acceleration measuring apparatus that uses a SAD algorithm, and which is capable of supporting a low-power function and a wireless communication function.
The above and other features and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:
According to an aspect of the present invention, there is provided a vehicle driving information measuring apparatus comprising: a first sensing unit which senses a driving vehicle; a second sensing unit which senses the driving vehicle at a position separated by a predetermined distance difference from the first sensing unit; an SAD (sum of absolute difference) accelerator which obtains a time difference corresponding to a highest degree of similarity between vehicle driving signals sensed by the first and second sensing units by using an SAD algorithm; and a central processing unit which calculates a velocity of the vehicle based on the distance difference between the first and second sensing units and the time difference obtained by the SAD hardware accelerator.
According to another aspect of the present invention, there is provided a method of measuring vehicle driving information, comprising: a first sensing unit sensing a driving vehicle; a second sensing unit sensing the driving vehicle at a position separated by a predetermined distance from the first sensing unit; obtaining a time difference corresponding to a highest degree of similarity between vehicle driving signals sensed by the first and second sensor units by using an SAD algorithm; and calculating a velocity of the vehicle based on the distance between the first and second sensing units and the time difference corresponding to the highest degree of similarity.
Hereinafter, the present invention will be described in detail by explaining exemplary embodiments of the invention with reference to the accompanying drawings.
The vehicle driving information measuring apparatus according to the current embodiment of the present invention is constructed on a single board. The vehicle driving information measuring apparatus includes sensing units 120, 130, and 140, which are consecutively disposed in a direction 110 parallel to a driving path of a vehicle 100.
The sensing units 120, 130, and 140 are single-axis or multi-axis magnetoresistive sensors.
The vehicle driving information measuring apparatus is constructed along a central portion or a side portion of the driving path of the vehicle 100. The sensing units 120, 130, and 140 are disposed at intervals dx along the driving path of the vehicle 100.
The sensing units 120, 130, and 140 are disposed so that, as the vehicle is driven parallel to and past the sensing units 120, 130, and 140, similar signal patterns repeatedly occur with a predetermined time difference in the vehicle sensing signals sensed by the sensing units 120, 130, and 140.
That is, two vehicle sensing signals sensed by two sensing units have similar signal patterns with a time interval dt taken to drive the vehicle the distance dx between the two sensing units.
Referring to the graph of
When the vehicle passes a sensing region of a sensing unit, the sensing unit senses a vehicle sensing signal.
The vehicle sensing signal has different patterns according to the type of the vehicle. The entire vehicle sensing signal or a partial vehicle sensing signal may be used to measure the velocity of the vehicle.
The vehicle driving information measuring apparatus according to the current embodiment of the present invention can calculate the velocity and acceleration of the vehicle by using the distance dx between the sensing units (which is defined at the time of designing the apparatus) and the time difference dt obtained from the vehicle sensing signals sensed by the sensing units.
The accuracy of the calculated velocity and acceleration of the vehicle is proportional to the accuracy of the time difference dt between the vehicle sensing signals.
Due to noise and characteristics of the sensing units, the vehicle sensing signal of each sensing unit may have a variation. Such a variation of the vehicle sensing signal causes deterioration in the accuracy of measurement of the velocity and acceleration of the vehicle.
Therefore, there is a need for an algorithm for providing a high degree of accuracy of the measurement of the velocity and acceleration of the vehicle irrespective of the variation of the vehicle sensing signals.
In order to obtain the time difference dt between the vehicle sensing signals sensed by the consecutive sensing units for the measurement of the velocity of the vehicle, a metric of the signal similarity between the vehicle sensing signals is obtained, and a time difference corresponding to the highest similarity between the vehicle sensing signals is used as the time difference dt.
In order to obtain the time difference corresponding to the highest similarity between the vehicle sensing signals, an algorithm for measuring signal similarities such as a cross-correlation algorithm, a sum-of-absolute-difference (SAD) algorithm, or a sum-of-square-difference (SSD) algorithm may be used.
The algorithm for measuring signal similarities involves a large amount of calculation. In particular, the amount of calculation is proportional to lengths of the signals that are to be compared with each other.
Accordingly, if an algorithm for measuring signal similarities is simple, the amount of calculation can be reduced, and the velocity of the vehicle can be measured in real time.
Among various algorithms, the SAD algorithm, which has no product calculation, is simple and can be implemented in a hardware manner. Thus, the SAD algorithm is suitable for the real-time measurement of the velocity of the vehicle.
In the SAD algorithm, a sum of absolute values of differences between two signals is calculated.
If the two signals are completely equal to each other, the SAD value is zero.
A time difference corresponding to the highest similarity between the signals sensed by the two vehicle sensing units is a time difference corresponding to a minimum SAD value.
Equation 1 below expresses an example of a method of measuring the velocity of a vehicle using the SAD algorithm.
Here, S1(t) and S2(t) denotes signal values sensed at a time t by consecutive first and second sensing units of the vehicle driving information measuring apparatus according to the current embodiment, respectively.
tmax denotes a length of a sensed signal, and dmax denotes a maximum time difference between two vehicle sensing signals which can be obtained by using the SAD algorithm.
b1 and b2 denote basis values of the first and second sensing units, respectively.
A minimum velocity which can be measured by the vehicle driving information measuring apparatus according to the current embodiment is determined based on the maximum time difference dmax.
The basis value in Equation 1 is a signal value sensed when there is no vehicle or object sensed by the sensing apparatus in the sensing region of the sensing apparatus. The basis value is treated as a DC offset value
Since the basis value may be varied, the variation of the basis value needs to be compensated periodically.
In order to measure the velocity and acceleration of the vehicle in real time, the SAD algorithm of the vehicle driving information measuring apparatus detects the time difference between the vehicle sensing signals sensed by the sensing units by using only the partial vehicle sensing signals instead of the entire vehicle sensing signals, that is, the vehicle sensing signals sensed from the time when the vehicle enters the sensing region to the time when the vehicle leaves the sensing region.
Referring to
At least two of the sensing units 310-1, 310-2, . . . , and 310-n are needed for measuring the velocity, and at least three of the sensing units 310-1, 310-2, . . . , and 310-n are needed for measuring the acceleration.
The sensing units 310-1, 310-2, . . . , and 310-n may be disposed at intervals in a range of centimeters to tens of centimeters according to the to-be-measured velocity and its accuracy.
The signal sensed by each sensing unit is amplified by the corresponding one of the amplifiers 320-1, 320-2, . . . 320-n, and after that, noise is removed therefrom by the corresponding one of the low pass filters 330-1, 330-2, . . . , and 330-n.
The CPU 350 samples the output signals of the low pass filters 330-1, 330-2, . . . , and 330-n by using the A/D converter 340 and transfers the sampled signals as input signals to the SAD hardware accelerator 360.
The SAD hardware accelerator 360 analyzes degrees of similarity between the input signals to obtain the optimal time difference and transfers the optimal time difference to the CPU 350.
The CPU 350 calculates the velocity of the vehicle based on the optimal time difference and the distance between the sensing units 310-1, 310-2, . . . , and 310-n.
Equation 2 below is an equation for measuring the velocity of the vehicle, used in the vehicle driving information measuring apparatus according to the current embodiment of the present invention.
v=(dx*fx)/Δt [Equation 2]
Here, dx denotes the distance between two sensing units; fx denotes a sampling frequency; and Δt denotes the number of sampling intervals obtained by using the SAD algorithm.
An effective quantum number of the time difference is determined by the sampling frequency in Equation 2.
If there is a lot of noise in two signals sensed by the sensing units or if the two signals do not have similar patterns, an error in Δt may be increased. In this case, by increasing dx, the accuracy of measurement of the velocity can be increased.
First, a first sensing unit of the vehicle driving information measuring apparatus is periodically activated to sense the vehicle and stores a sensed signal value S1 (S401).
Then a difference (S1−b1) between the sensed signal S1 and a basis value b1 of the first sensing unit is calculated (S402). If the calculated difference (S1−b1) is less than a threshold value, the first sensing unit determines that the vehicle is not sensed and attempts to sense the vehicle again (S403).
If the difference (S1−b1) between the sensed signal S1 and the basis value b1 is greater than the threshold value, the first sensing unit determines that the vehicle is sensed and sets the SAD value and a T value to 0 and 0, respectively (S404).
The first sensing unit and a second sensing unit sense the vehicle (S405) and store sensed values S1(T) and S2(T) (S406).
The first and second sensing units set T=T+1 at the next sampling period to sense the vehicle (S407) and store the sensed values S1(T) and S2(T). These operations are repeatedly performed until T is greater than dmax (S408).
If T is greater than dmax and if T is less than Tmax (S409), an index j is set to 0 (S410).
A value SAD(j) is calculated by using the aforementioned operations, and after that, the index j is increased by 1 (S411). The aforementioned operations are repeatedly performed until j=dmax (S412). If j=dmax, the method proceeds to operation 407.
As a result of operation 409, if T is equal to or greater than Tmax, the optimal time difference Δt between the two vehicle sensing signals is selected as the index j of the minimum value among the SAD values calculated in operation S411, and after that, the velocity of the vehicle is calculated based on the optimal time difference Δt (S413).
The above-described operations can be expressed by pseudo code as follows.
The SAD hardware accelerator according to the current embodiment performs the operations described in lines 7 to 14 in the above pseudo code of the SAD algorithm for a short time.
According to another embodiment of the present invention, a vehicle velocity measuring apparatus having three or more sensing units can also measure the acceleration of a vehicle.
Firstly, the vehicle velocity measuring apparatus having three or more sensing units measures two velocity values based on signals sensed by two consecutive sensing units.
That is, a velocity V1 of the vehicle is measured based on the sensed signals sensed by first and second sensing units, and after that, a velocity V2 of the vehicle is measured based on the sensed signals sensed by the second and third sensing units.
The acceleration of the vehicle can be calculated based on the velocities V1 and V2 of the vehicle by using Equation 3 below.
a=(V2−V1)/dt2 [Equation 3]
Here, dt2 denotes a time difference between the sensing signals sensed by the second and third sensing units.
When the sensing signal sensed by one of the sensing units of the vehicle velocity measuring apparatus is greater than the basis value, the vehicle velocity measuring apparatus determines that a vehicle is approaching the vehicle velocity measuring apparatus and enters into a mode of measuring the velocity and acceleration to perform the operations of obtaining the time difference based on the signals sensed by the sensing units.
In order to minimize power consumption of the vehicle velocity measuring apparatus, the vehicle velocity measuring apparatus is designed to include various functional blocks and controls power supplied to the functional blocks separately.
For lower power operations, the vehicle velocity measuring apparatus supports a low-power vehicle sensing mode and a vehicle velocity measuring mode.
In the vehicle sensing mode, the vehicle velocity measuring apparatus activates one of the sensing units periodically to sense the vehicle at a low sampling frequency.
If a value of the sensing signal is greater than a threshold value, the vehicle velocity measuring apparatus determines that the vehicle has entered the sensing region and switches the vehicle sensing mode to the vehicle velocity measuring mode.
In the vehicle sensing mode, the sensing units of the vehicle velocity measuring apparatus sense the vehicle at a high sampling frequency to generate signals.
The sensed signals are used to obtain the time difference between the signals by using the SAD algorithm.
The vehicle velocity measuring apparatus transmits the measured velocity of the vehicle via the wireless transceiver to a receiver disposed at a side portion of the road.
The cost of construction of the vehicle velocity measuring apparatus can be reduced by using such a wireless communication scheme.
The invention can also be embodied as computer readable codes on a computer readable recording medium. The computer readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the computer readable recording medium include read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storage devices, and carrier waves (such as data transmission through the Internet). The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.
According to the present invention, there is provided a single-board type vehicle velocity and acceleration measuring apparatus using a SAD hardware accelerator having a relatively simple algorithm, which is capable of accurately measuring the velocity and acceleration of a vehicle in real time.
In addition, since a low-power function is provided, an internal power supply of the vehicle velocity and acceleration measuring apparatus can be supported. Further, since wireless communication is used, external cables for operations of the apparatus are un-necessary.
Accordingly, the cost of construction of the apparatus on a road is cheaper than that of an existing loop sensor for sensing the velocity of the vehicle.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. The exemplary embodiments should be considered in descriptive sense only and not for purposes of limitation. Therefore, the scope of the invention is defined not by the detailed description of the invention but by the appended claims, and all differences within the scope will be construed as being included in the present invention.
Number | Date | Country | Kind |
---|---|---|---|
10-2007-0099929 | Oct 2007 | KR | national |
10-2007-0133743 | Dec 2007 | KR | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/KR08/04428 | 7/30/2008 | WO | 00 | 4/1/2010 |